Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Floating point exception #66

Closed
strongcourage opened this issue Jul 18, 2019 · 2 comments
Closed

Floating point exception #66

strongcourage opened this issue Jul 18, 2019 · 2 comments

Comments

@strongcourage
Copy link

Hi,

I found a FPE bug on the latest commit cafd4b8 of master.

PoC: https://github.com/strongcourage/PoCs/blob/master/sam2p_cafd4b8/PoC_fpe
Command: sam2p $PoC /tmp/out.bmp

ASAN says:

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: Warning: TGA: 24 bit image, 9 bit alpha is greater than 24 total bits per pixel
sam2p-asan: Warning: TGA: reducing to * bit alpha: 0
Floating point exception

Thanks,
Manh Dung

@pts pts closed this as completed in b953f63 Jul 18, 2019
@pts
Copy link
Owner

pts commented Jul 18, 2019

Thank you for reporting this! Fixed in b953f63.

The new behavior is failing with a more informative error message:

sam2p: Error: Image: Image of size 0.

@fgeek
Copy link

fgeek commented Jul 27, 2021

CVE-2020-19492 has been assigned for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants