From: Tom L. <tg...@ss...> - 2016-06-29 19:25:34
|
Dinesh Iyer <dsi...@gm...> writes: > I am user of libjpeg 6b and I am observing a crash when reading a corrupt > JPEG image. This crash occurs only when I try to use my own data source > manager instead of using jpg_stdio_src. Presumably, this means your data source manager is doing something wrong. The location of the crash suggests it's probably associated with a resync_to_restart callback, which would be a likely place for bugs to lurk unnoticed since that function is never invoked except when seeing corrupted input data. You might find it useful to read the comments for jpeg_resync_to_restart(), which is the library's own version of resync_to_restart. regards, tom lane |