Skip to content

jpegdec: check buffer size before dereferencing

Some cameras (Panacast) have buggy drivers/firmware which send invalid JPEG frames, containing no data, which makes jpegdec crash because it assumes the frame is at least 2 bytes long.

I've been using this patched version for some time now with no problem.

Fixes #541 (closed)

Edited by Tim-Philipp Müller

Merge request reports

Loading