Type and bounds check "x | y | z".

This commit is contained in:
Nigel Tao committed 2017-07-27 13:07:10 +10:00
1 parent eee67e083d
commit e1be6d9582
6 files changed
+75 -33

No files matched your search

+2 -2
View File
@@ -1143,8 +1143,8 @@ puffs_flate_status puffs_flate_decoder_init_huff(puffs_flate_decoder* self,
v_reversed_code = (((uint32_t)(puffs_flate_reverse8[v_code >> 1])) |
((v_code & 1) << 8));
v_reversed_code >>= (9 - v_cl);
v_value = ((((uint32_t)(self->private_impl.f_symbols[v_i])) << 8) | v_cl);
v_value |= 1073741824;
v_value = (1073741824 |
(((uint32_t)(self->private_impl.f_symbols[v_i])) << 8) | v_cl);
v_high_bits = (((uint32_t)(1)) << v_max_cl);
v_delta = (((uint32_t)(1)) << v_cl);
while (v_high_bits >= v_delta) {