Kaydet (Commit) 2fa3cac0 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

check array index *before* using it in array, not *after*

üst eb6621d4
......@@ -169,7 +169,7 @@ static inline void printIndex2(FILE *source_fp, sal_Int16 *set)
for (sal_Int32 j = 0; j < 0x100; j++) {
sal_Int32 k = (i<<8) + j;
if (prev != 0 )
while( charArray[k] == 0 && k < 0x10000 )
while( k < 0x10000 && charArray[k] == 0 )
k++;
prev = charArray[(i<<8) + j];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment