pts / sam2p

raster (bitmap) image converter with smart PDF and PostScript (EPS) output
http://pts.50.hu/sam2p/
GNU General Public License v2.0
42 stars 15 forks source link

out of memory and abort #64

Closed cxht closed 5 years ago

cxht commented 5 years ago

HI! When I use sam2p 0.49.4 as ./sam2p ../sam2p/crash/43.bmp EPS: /dev/null, it shows "out of memory" This is sam2p 0.49.4. Available Loaders: PS PDF JAI PNG JPEG TIFF PNM BMP LBM XPM PCX TGA. Available Appliers: XWD Meta Empty BMP PNG TIFF6 TIFF6-JAI JPEG-JAI JPEG PNM XPM PSL1C PSL23+PDF PSL2+PDF-JAI P-TrOpBb. out of memory Aborted (core dumped) and here is the input file. 43

pts commented 5 years ago

Thank you for reporting this! It's fixed in 93d5cedf4a5aaf769ba5f749d968f3ffb244c366. The new behavior is a friendlier error message:

sam2p: Error: PNM: invalid xres while loading