Invalid memory address dereference in Image::RGB::RGB (in image.cpp)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sam2p (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Package: sam2p
Version: 0.49.2 - 0.49.4
Source code:https:/
Details:
In function Image::RGB::RGB at image.cpp (Line 1239,sam2p version:0.49.4):
Key code that causes crashes:
Image::
init(
Crash Information:
The output with address sanitizer enabled:
> ./sam2p 007-unknown-
> This is sam2p 0.49.4.
> Available Loaders: PS PDF JAI PNG JPEG TIFF PNM BMP GIF LBM XPM PCX TGA.
> Available Appliers: XWD Meta Empty BMP PNG TIFF6 TIFF6-JAI JPEG-JAI JPEG PNM GIF89a+LZW XPM PSL1C PSL23+PDF PSL2+PDF-JAI P-TrOpBb.
> ASAN:SIGSEGV
> ==10156==ERROR: AddressSanitizer: SEGV on unknown address 0x10009e757d03 (pc 0x7ffff6ef6b73 bp 0x7fffffffd6b0 sp 0x7fffffffce40 T0)
> #0 0x7ffff6ef6b72 in __asan_memset (/usr/lib/
> #1 0x474210 in Image::
> #2 0x431fe6 in LoadPCX /root/sam2p_
> #3 0x431fe6 in in_pcx_reader /root/sam2p_
> #4 0x475999 in Image::
> #5 0x40384a in run_sam2p_
> #6 0x402463 in main /root/sam2p_
> #7 0x7ffff6ac082f in __libc_start_main (/lib/x86_
> #8 0x402d38 in _start (/usr/local/
>
> AddressSanitizer can not provide additional info.
> SUMMARY: AddressSanitizer: SEGV ??:0 __asan_memset
> ==10156==ABORTING
reference link:https:/