sane-project-backends/backend/escl
Sebastian Parborg ba7d24bf30 escl: Fix crash in libjpeg when cropping the scanned image
jpeg_crop_scanline will adjust the x offset and the width of the image
to make it line up with the nearest iMCU boundary.

Before, this was not taken into account and it would make SANE
potentially allocate a too small buffer for the final image.

This would lead to segfaults because libjpeg would try to write outside
of the allocated memory region as it assumes that the buffer was
allocated with the new cinfo.output_width size after cropping.
2023-09-19 15:54:22 +02:00
..
escl.c
escl.h
escl_capabilities.c escl - Fix constant build . 2023-08-05 17:55:14 +02:00
escl_crop.c
escl_devices.c
escl_jpeg.c escl: Fix crash in libjpeg when cropping the scanned image 2023-09-19 15:54:22 +02:00
escl_mupdf.c
escl_newjob.c escl - Fix constant build . 2023-08-05 17:55:14 +02:00
escl_pdf.c
escl_png.c
escl_reset.c
escl_scan.c
escl_status.c
escl_tiff.c