Tweak AdditionOverflowInLoaderExifJpeg for 32bit unsigned char OSes
authorPino Toscano <pino@debian.org>
Thu, 5 Sep 2024 17:02:33 +0000 (19:02 +0200)
committerPino Toscano <pino@debian.org>
Thu, 5 Sep 2024 17:02:33 +0000 (19:02 +0200)
commit5d486c63a3308b1ea252d8cf0f744d366e8b4df3
treebf3961ddf3b9fe37d88a83ecf61a068dcf4abe06
parentbc6df0ec60b2fe43c4d8edb5f8ba1e06366c1b52
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