diff options
author | fanquake <fanquake@gmail.com> | 2022-02-10 07:17:06 +0000 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-02-10 07:17:32 +0000 |
commit | 243a9c39250dee95b6fe62ac5ae2f8e3eafecf1b (patch) | |
tree | 8356c0de419f421ba0cb9e90914f1647a2ec376c /src/compressor.h | |
parent | 8796c2f5688d87be6580e28d7f5d1a235c338e6d (diff) | |
parent | fac9fe5d051264fcd16e8e36d30f28c05c999837 (diff) |
Merge bitcoin/bitcoin#24297: Fix unintended unsigned integer overflow in strencodings
fac9fe5d051264fcd16e8e36d30f28c05c999837 Fix unintended unsigned integer overflow in strencodings (MarcoFalke)
Pull request description:
This fixes two issues for strings that start with a colon and only have one colon:
* `fMultiColon` is incorrectly set to `true`
* There is an unsigned integer overflow `colon - 1` (`0 - 1`)
Neither issue matters, as the result is discarded. Though, it makes sense to still fix the issue for clarity and to avoid sanitizer issues in the function.
ACKs for top commit:
laanwj:
Code review ACK fac9fe5d051264fcd16e8e36d30f28c05c999837
shaavan:
Code Review ACK fac9fe5d051264fcd16e8e36d30f28c05c999837
Tree-SHA512: e71c21a0b617abf241e561ce6b90b963e2d5e2f77bd9547ce47209a1a94b454384391f86ef5d35fedd4f4df19add3896bb3d61fed396ebba8e864e3eeb75ed59
Diffstat (limited to 'src/compressor.h')
0 files changed, 0 insertions, 0 deletions