Tweak AdditionOverflowInLoaderExifJpeg for 32bit unsigned char OSes
authorPino Toscano <pino@debian.org>
Wed, 26 Feb 2025 06:09:30 +0000 (07:09 +0100)
committerPino Toscano <pino@debian.org>
Wed, 26 Feb 2025 06:09:30 +0000 (07:09 +0100)
commit9c776b072af1d58e55e9eb04da4ce9cb2de76772
tree0a43bdf86ad5675e3cb924f9c401b451f6011feb
parent3633b48166556d502242f28ea7a7823fa18134e3
Tweak AdditionOverflowInLoaderExifJpeg for 32bit unsigned char OSes

Last-Update: 2023-07-16
Forwarded: not-needed

AdditionOverflowInLoaderExifJpeg expects an overflow to happen on 32bit
architectures; due to the way LoaderExifJpeg & StringValueBase work and the
test data is fabricated, the overflow happens only architectures with signed
char.

Tweak AdditionOverflowInLoaderExifJpeg to account for this, by not expecting an
overflow in case the architecture has unsigned char (e.g. ARM and POWER).

For more discussion and notes, see: https://github.com/Exiv2/exiv2/issues/933

Gbp-Pq: Name tests-overflow-skip-unsigned-char-23bit.diff
tests/bugfixes/github/test_CVE_2018_12265.py