Closed puppet-meteor closed 6 years ago
Thank you for reporting this! I'm not able to reproduce this bug with the latest sam2p HEAD (d2656beef486c55b53ae0d7e395d6610cc8ee744), so I'm closing this issue now. Feel free to report more issues, but please check that you have d2656beef486c55b53ae0d7e395d6610cc8ee744 or later checked out.
$ ./sam2p.asan sam2p_1 EPS: /dev/null
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.
sam2p.asan: Error: BMP: Invalid bpp.
A crafted input will lead to a heap buffer overflow in in_bmp.cpp:31 at sam2p 0.49.4.
Trigger by ./sam2p sam2p_1 EPS: /dev/null
POC File: https://github.com/puppet-meteor/sam2p_POC/blob/master/sam2p_1
Version: sam2p 0.49.4
ASAN infomation:
found by puppet@zju.edu.cn from NESA Lab in Zhejiang University.