Hi all, This is Qianxin CodeSafe Team, we found a suspicious issue, The stream pointer "f" may be empty at https://github.com/opencv/opencv/blob/09030615891c177d322c5a8bbcd58bc1e1384173/modules/imgcodecs/perf/perf_jpeg.cpp#L17 Therefore,this results in a null point dereference at https://github.com/opencv/opencv/blob/09030615891c177d322c5a8bbcd58bc1e1384173/modules/imgcodecs/perf/perf_jpeg.cpp#L18