Crash with "Bogus memory allocation size" error
Submitted by Russell J
Link to original bug (#761213)
Description
Using Evince Document Viewer 2.32.0.145 (from PortableApps.com), I received the following message:
Bogus memory allocation size
when I tried to programatically (with a Python script) open a "fuzzed" version of the PDF file (40,420 KB newharmonyexposi00stro_bw.pdf ["The Gospel History: A Harmony and Exposition of the Christian Scriptures"]) (which I believe was originally from Archive.org) with Evince.
By "fuzzed", I mean that 1 byte of the file had been randomly changed. I will put copies of the original and fuzzed versions of the PDF file on Google Drive, along with the corresponding .outerr (stdout/stderr) files.
Here's the "guts" of my Python code:
app = r'Evince\bin\Evince.exe'
fn_process_outerr = '%s.outerr' % os.path.splitext(os.path.basename(pdf_file))[0]
with open(fn_process_outerr, 'w') as f_process_outerr:
process = subprocess.Popen([app, pdf_file],
stdout=f_process_outerr, stderr=f_process_outerr)
time.sleep(5)
poll_code = process.poll()
if poll_code:
print('Evince crashed with return code: %d.' % poll_code)
which printed "Evince crashed with return code: 1."
Version: 2.32.x