mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 16:47:28 +01:00
Bounds check "x as T" and "x << y".
This commit is contained in:
1 parent
45cecca79a
commit
6e7aa31aef
3 files changed
+23
-5
No files matched your search
+1
-1
@@ -221,7 +221,7 @@ puffs_gif_status puffs_gif_lzw_decoder_decode(puffs_gif_lzw_decoder* self,
|
||||
goto cleanup0;
|
||||
}
|
||||
uint8_t t_0 = a_src->ptr[a_src->ri++];
|
||||
v_bits |= ((uint32_t)(t_0));
|
||||
v_bits |= (((uint32_t)(t_0)) << v_n_bits);
|
||||
v_n_bits += 8;
|
||||
}
|
||||
v_bits >>= v_width;
|
||||
|
||||
Reference in new issue
Block a user