Chromium Code Reviews
DescriptionAvoid overflow on left shift in HpackVarintDecoder::Resume().
This CL only changes functionality if |offset_ == MaxOffset()| and
|byte != 0| in the last execution of the do loop. In this case, the
final value of |offset_| will be different, but this is a private member
with no accessor, and has no effect visible to consumers. Also,
|value_| will not be incremented in the last cycle, in order to avoid
the runtime error that Clusterfuzz filed this bug for. However, in this
case decoding fails with kDecodeError, and |value_| is considered
invalid anyway.
BUG=698698
Review-Url: https://codereview.chromium.org/2819873002
Cr-Commit-Position: refs/heads/master@{#465235}
Committed: https://chromium.googlesource.com/chromium/src/+/0b38727639f5a7846099709654d065ab4c90239d
Patch Set 1 #
Total comments: 1
Messages
Total messages: 17 (9 generated)
|
|||||||||||||||||||