Bug 697021

Summary: mujstest: global-buffer-overflow in my_getline (jstest_main.c)
Product: MuPDF Reporter: Agostino Sarubbo <ago>
Component: fuzzingAssignee: MuPDF bugs <mupdf-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: sebastian.rasmussen
Priority: P4    
Version: 1.9   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: reproducer
stacktrace

Description Agostino Sarubbo 2016-08-05 07:51:09 UTC
Created attachment 12821 [details]
reproducer

Hello,

there is a global buffer overflow in my_getline triggered from a crafted file.

I'm attaching:
1) The reproducer;
2) The stacktrace provided by Address Sanitizer;
Comment 1 Agostino Sarubbo 2016-08-05 07:51:28 UTC
Created attachment 12822 [details]
stacktrace
Comment 2 Agostino Sarubbo 2016-09-21 07:03:18 UTC
The command to reproduce the issue is:
# mujstest $REPRODUCER
Comment 3 Sebastian Rasmussen 2016-09-22 10:09:02 UTC
This issue has been fixed by commit 446097f97b71ce20fa8d1e45e070f2e62676003e.