Skip to content

Abort signal imagetopdf #687

Open
Open

Description

@CryptoPirat3

Describe the bug
imagetopdf causes abort signal when used with certain file

To Reproduce
Steps to reproduce the behavior:

  1. First of all build from sources cups-filters-2.0.1, libcupsfilters-2.1.1, libppd-2.1.1, pdfio-1.6.1
  2. Run imagetopdf with Crash seed (finding 288).txt file and you will see abort signal

Expected behavior
Normal completion of the executeable

Executable log

#0  0x00007ffff73666fc in ?? () from /lib64/libc.so.6
#1  0x00007ffff7317982 in raise () from /lib64/libc.so.6
#2  0x00007ffff73004ef in abort () from /lib64/libc.so.6
#3  0x00007ffff774694a in ?? () from /lib64/libpng16.so.16
#4  0x00007ffff7748a77 in png_error () from /lib64/libpng16.so.16
#5  0x00007ffff7748ea3 in png_chunk_error () from /lib64/libpng16.so.16
#6  0x00007ffff7759997 in ?? () from /lib64/libpng16.so.16
#7  0x00007ffff775299a in png_read_end () from /lib64/libpng16.so.16
#8  0x00005555555e3c9b in _cfImageReadPNG (img=img@entry=0x55555598e110, fp=fp@entry=0x55555594d2d0, primary=primary@entry=CF_IMAGE_WHITE, secondary=secondary@entry=CF_IMAGE_WHITE, saturation=saturation@entry=100, hue=hue@entry=0, lut=<optimized out>) at /src/libcupsfilters-2.1.1/cupsfilters/image-png.c:309
#9  0x00005555555e0151 in cfImageOpenFP (fp=fp@entry=0x55555594d2d0, primary=CF_IMAGE_WHITE, secondary=secondary@entry=CF_IMAGE_WHITE, saturation=saturation@entry=100, hue=hue@entry=0, lut=lut@entry=0x0) at /src/libcupsfilters-2.1.1/cupsfilters/image.c:387
#10 0x00005555555ec74b in cfFilterImageToPDF (inputfd=<optimized out>, outputfd=1, inputseekable=1, data=0x7fffffffc668, parameters=<optimized out>) at /src/libcupsfilters-2.1.1/cupsfilters/imagetopdf.c:921
#11 0x0000555555566202 in ppdFilterCUPSWrapper (argc=argc@entry=7, argv=argv@entry=0x7fffffffc978, filter=0x55555556ab80 <ppdFilterImageToPDF>, parameters=parameters@entry=0x0, JobCanceled=0x55555570ac80 <JobCanceled>) at /src/libppd-2.1.1/ppd/ppd-filter.c:179
#12 0x0000555555565cd4 in main (argc=7, argv=0x7fffffffc978) at /src/cups-filters/filter/imagetopdf.c:73

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions