public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: "da… via monorail" <monorail+v2.1355924921@chromium.org>
To: elfutils-devel@sourceware.org
Subject: Issue 45631 in oss-fuzz: elfutils:fuzz-libdwfl: Use-of-uninitialized-value in __libdw_gunzip
Date: Sun, 20 Mar 2022 02:58:15 -0700	[thread overview]
Message-ID: <00000000000026f88905daa36b2b@google.com> (raw)
In-Reply-To: <0=71cc74a7ba1af446b7ed6b9a08b414d9=e8012982be40997bfd82c6bebd9e94fe=oss-fuzz@monorail-prod.appspotmail.com>


Comment #1 on issue 45631 by da...@adalogics.com: elfutils:fuzz-libdwfl: Use-of-uninitialized-value in __libdw_gunzip
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=45631#c1

MSAN report
	Running: /mnt/scratch0/clusterfuzz/bot/inputs/fuzzer-testcases/crash-cdd503eda6f927979a20a3bd4c08c8182cdf2ff5
==593068==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x55eeb6 in zlib_fail /src/elfutils/libdwfl/gzip.c:132:3
    #1 0x55eeb6 in __libdw_gunzip /src/elfutils/libdwfl/gzip.c:387:11
    #2 0x540817 in decompress /src/elfutils/libdwfl/open.c:66:11
    #3 0x5400d7 in what_kind /src/elfutils/libdwfl/open.c:114:12
    #4 0x5400d7 in libdw_open_elf /src/elfutils/libdwfl/open.c:134:22
    #5 0x53f505 in __libdw_open_file /src/elfutils/libdwfl/open.c:197:10
    #6 0x52cea7 in __libdwfl_report_offline /src/elfutils/libdwfl/offline.c:281:22
    #7 0x52cea7 in dwfl_report_offline /src/elfutils/libdwfl/offline.c:316:10
    #8 0x52747b in LLVMFuzzerTestOneInput /src/fuzz-libdwfl.c:47:22
    #9 0x4552f2 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:611:15
    #10 0x440ea2 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:324:6
    #11 0x44670c in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:860:9
    #12 0x46f0a2 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10
    #13 0x7f5b32dd40b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/libc-start.c:308:16
    #14 0x41f5ed in _start
  Uninitialized value was created by an allocation of 'code' in the stack frame of function '__libdw_gunzip'
    #0 0x55cde0 in __libdw_gunzip /src/elfutils/libdwfl/gzip.c:184
SUMMARY: MemorySanitizer: use-of-uninitialized-value (/mnt/scratch0/clusterfuzz/bot/builds/clusterfuzz-builds_elfutils_3ee01cb67db1a71e7adeb7f3f14722ea62f13cd5/revisions/fuzz-libdwfl+0x55eeb6)
Unique heap origins: 44
Stack depot allocated bytes: 1638400
Unique origin histories: 7
History depot allocated bytes: 196608
Exiting

-- 
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.

  parent reply	other threads:[~2022-03-20  9:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <0=71cc74a7ba1af446b7ed6b9a08b414d9=e8012982be40997bfd82c6bebd9e94fe=oss-fuzz@monorail-prod.appspotmail.com>
2022-03-17  5:54 ` ClusterFuzz-External via monorail
2022-03-20  9:58 ` da… via monorail [this message]
2022-03-20  9:58 ` da… via monorail
2022-03-23  0:05 ` ClusterFuzz-External via monorail
2022-03-24 21:11 ` ClusterFuzz-External via monorail

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=00000000000026f88905daa36b2b@google.com \
    --to=monorail+v2.1355924921@chromium.org \
    --cc=elfutils-devel@sourceware.org \
    --cc=oss-fuzz@monorail-prod.appspotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).