Tweak AdditionOverflowInLoaderExifJpeg for 32bit unsigned char OSes
authorPino Toscano <pino@debian.org>
Mon, 30 Sep 2024 23:40:44 +0000 (23:40 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Mon, 30 Sep 2024 23:40:44 +0000 (23:40 +0000)
commit54c804d002156435faa0251989bc6b540458abfc
tree1b172dee3d99da7367e06f1e71179b3ec73101d4
parente537e55b4735de03f2ceb2a6860e2282550683c5
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