mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-19 20:08:28 +01:00
Fix hidden myerr in my_error_exit
Change-Id: I0e3660eff2f6a20446b6fcd2925312757fda424c
This commit is contained in:
parent
3bd9420289
commit
a1ca153d51
@ -205,12 +205,12 @@ struct my_error_mgr {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static void my_error_exit(j_common_ptr dinfo) {
|
static void my_error_exit(j_common_ptr dinfo) {
|
||||||
|
struct my_error_mgr* myerr = (struct my_error_mgr*)dinfo->err;
|
||||||
// The following code is disabled in fuzzing mode because:
|
// The following code is disabled in fuzzing mode because:
|
||||||
// - the logs can be flooded due to invalid JPEG files
|
// - the logs can be flooded due to invalid JPEG files
|
||||||
// - msg_code is wrongfully seen as uninitialized by msan when the libjpeg
|
// - msg_code is wrongfully seen as uninitialized by msan when the libjpeg
|
||||||
// dependency is not built with sanitizers enabled
|
// dependency is not built with sanitizers enabled
|
||||||
#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
|
#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
|
||||||
struct my_error_mgr* myerr = (struct my_error_mgr*)dinfo->err;
|
|
||||||
const int msg_code = myerr->pub.msg_code;
|
const int msg_code = myerr->pub.msg_code;
|
||||||
fprintf(stderr, "libjpeg error: ");
|
fprintf(stderr, "libjpeg error: ");
|
||||||
dinfo->err->output_message(dinfo);
|
dinfo->err->output_message(dinfo);
|
||||||
|
Loading…
Reference in New Issue
Block a user