In sam2p 0.49.4, there are integer overflows (with resultant heap-based buffer overflows) in input-bmp.ci in the function ReadImage, because "width * height" multiplications occur unsafely.
https://lists.debian.org/debian-lts-announce/2017/11/msg00031.html