Issue #1829: Fix crash in unrtf library.

Integer overflow in array index leading to unpredictable behavior.
Using correct integer signess and casting fix the problem and turn
negative value into 0. Expected fallback behavior then apply.

Make use of uint8_t since the hash array is a static array of 255 elements.
This commit is contained in:
Julien Kerihuel authored and Ludovic Marcotte committed 2013-01-18 10:27:37 -05:00
1 parent e6e4616a69
commit 7e001a05a4
1 file changed
+850 -288
File diff suppressed because it is too large. Load diff