Further protect against invalid Huffman codes

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.0.x@324 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
DRC 2011-01-26 05:35:20 +00:00
Родитель 79778f6588
Коммит fa1d18385d
2 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,9 @@
Significant changes since 1.0.1
===============================
[1] Added further protections against invalid Huffman codes.
Significant changes since 1.0.0
===============================

Просмотреть файл

@ -658,7 +658,7 @@ decode_mcu_slow (j_decompress_ptr cinfo, JBLOCKROW *MCU_data)
symbol |= GET_BITS(1); \
size++; \
} \
symbol = htbl->pub->huffval[ (int) (symbol + htbl->valoffset[size]) ]; \
symbol = htbl->pub->huffval[ (int) (symbol + htbl->valoffset[size]) & 0xFF ]; \
} \
}