mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 16:47:28 +01:00
Use "x < y" when bounds checking "x - y".
This commit is contained in:
1 parent
747247a557
commit
80a39bfccb
3 files changed
+28
-4
No files matched your search
@@ -168,6 +168,7 @@ puffs_gif_status puffs_gif_lzw_decoder_decode(puffs_gif_lzw_decoder* self) {
|
||||
v_n_bits += 8;
|
||||
}
|
||||
v_bits >>= v_width;
|
||||
v_n_bits -= v_width;
|
||||
goto label_0_break;
|
||||
v_n_bits = 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user