Skip to content

Commit fb895da

Browse files
authored
Check annotate_hash_table return value (#9572)
1 parent 00a5426 commit fb895da

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/libImaging/Quant.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,9 @@ quantize(
13751375
fflush(stdout);
13761376
timer = clock();
13771377
#endif
1378-
annotate_hash_table(root, h, &nPaletteEntries);
1378+
if (!annotate_hash_table(root, h, &nPaletteEntries)) {
1379+
goto error_3;
1380+
}
13791381
#ifdef DEBUG
13801382
printf("done (%f)\n", (clock() - timer) / (double)CLOCKS_PER_SEC);
13811383
#endif

0 commit comments

Comments
 (0)