Revision: 4231
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4231&view=rev
Author:   dcommander
Date:     2011-01-04 19:14:44 +0000 (Tue, 04 Jan 2011)

Log Message:
-----------
Further protect against bad Huffman codes

Modified Paths:
--------------
    trunk/common/jpeg/jdhuff.c

Modified: trunk/common/jpeg/jdhuff.c
===================================================================
--- trunk/common/jpeg/jdhuff.c  2010-12-21 16:06:36 UTC (rev 4230)
+++ trunk/common/jpeg/jdhuff.c  2011-01-04 19:14:44 UTC (rev 4231)
@@ -658,7 +658,7 @@
       symbol |= GET_BITS(1); \
       size++; \
     } \
-    symbol = htbl->pub->huffval[ (int) (symbol + htbl->valoffset[size]) ]; \
+    symbol = htbl->pub->huffval[ (int) (symbol + htbl->valoffset[size]) & 0xFF 
]; \
   } \
 }
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Tigervnc-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to