Skip to content

Commit

Permalink
vpx_dec_fuzzer.cc: Initialize stream_info.sz
Browse files Browse the repository at this point in the history
stream_info.sz should be initialized to sizeof(stream_info).

Bug: oss-fuzz:68912
Change-Id: I0cc0fcdfc93b7188a834ee1896f0bb4cf8c32fa9
  • Loading branch information
wantehchang authored and jzern committed May 13, 2024
1 parent 5913401 commit 498097b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/vpx_dec_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
frame_size = std::min(size, frame_size);

vpx_codec_stream_info_t stream_info;
stream_info.sz = sizeof(stream_info);
vpx_codec_err_t err = vpx_codec_peek_stream_info(VPXD_INTERFACE(DECODER),
data, size, &stream_info);
static_cast<void>(err);
Expand Down

0 comments on commit 498097b

Please sign in to comment.