From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <3c_o2Yg0bAFwGIHIL4CF-JLI74JJC7.AIIAF8OM8L6IHN8HN.6IG@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com> Received: from mail-io1-xd47.google.com (mail-io1-xd47.google.com [IPv6:2607:f8b0:4864:20::d47]) by sourceware.org (Postfix) with ESMTPS id 701E23858407 for ; Sun, 20 Mar 2022 09:57:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 701E23858407 Received: by mail-io1-xd47.google.com with SMTP id k10-20020a5d91ca000000b006414a00b160so8492075ior.18 for ; Sun, 20 Mar 2022 02:57:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:date:reply-to:references:message-id :subject:from:to; bh=XugXJlWTBNbXmAN9HtK1VnRKHjq/5b4FZdMbtYv3SSA=; b=GIflLN4cQIrg9auY8Dona3Z3otOluH90tCzj576pT7aa8QW9DLOECoIURYJMs6B89x Jho8oLt0MShVb/YTAsyb21kQX/X96j1bczbmf0TaewRtPzsOom/oBJz4mXqO55oTKmpN tcJbj1F/NZWieWSuhQTDAkNXVoSFCaS4YltVzXUEWNBECfjgvfRpCrvRL7PRQgq71VWh rcJchAYc5yA8gUJ4azcrDlbvyEbcmMSTcebYDtJ9ODWhS7mpJpmzK00OmsgJ9opGXjoZ 0qwILyK0VDmrp3Z9J7ZUpe6ArhsKNgUySgnzd8C3YgTS8fwYPOk2PgOpjSF+QL7K8GHS bI9w== X-Gm-Message-State: AOAM533GR26PBmCfa0H4Prvn7iRhRSnGA/Pv8AzVxP6vYqEK4IGbjosb CKei0hr4o28HRiS/PX+3Ye2TwdccQgaGNgCZQZnG1sL4vh3T X-Google-Smtp-Source: ABdhPJwa19FiD9u5j+yiggna4CGvs7tFD9VO1ZhwvOvnapD/QRssXZCifja70vgM69C12eeYckF92hqWwtOpLcK8b8CssUW/LHIT MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1bcb:b0:2c7:b047:5564 with SMTP id x11-20020a056e021bcb00b002c7b0475564mr7116977ilv.201.1647770227803; Sun, 20 Mar 2022 02:57:07 -0700 (PDT) Date: Sun, 20 Mar 2022 02:57:07 -0700 Reply-To: oss-fuzz@monorail-prod.appspotmail.com References: <0=71cc74a7ba1af446b7ed6b9a08b414d9=ea1264b8eb8555aa9de8bbd022f3db6f=oss-fuzz@monorail-prod.appspotmail.com> X-Google-Appengine-App-Id: s~monorail-prod X-Google-Appengine-App-Id-Alias: monorail-prod Message-ID: <00000000000019a08705daa36700@google.com> Subject: Issue 45630 in oss-fuzz: elfutils:fuzz-libelf: Use-of-uninitialized-value in validate_str From: =?UTF-8?B?ZGHigKYgdmlhIG1vbm9yYWls?= To: elfutils-devel@sourceware.org X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2022 09:57:10 -0000 Comment #2 on issue 45630 by da...@adalogics.com: elfutils:fuzz-libelf: Use-of-uninitialized-value in validate_str https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=45630#c2 MSAN report: Running: /mnt/scratch0/clusterfuzz/bot/inputs/fuzzer-testcases/crash-ecd598ded30b07196a2ab343f59f7a25442f0560 ==744==WARNING: MemorySanitizer: use-of-uninitialized-value #0 0x538d7b in validate_str /src/elfutils/libelf/elf_strptr.c:61:4 #1 0x5383fe in elf_strptr /src/elfutils/libelf/elf_strptr.c:188:11 #2 0x527361 in fuzz_logic_one /src/fuzz-libelf.c:37:26 #3 0x527cec in LLVMFuzzerTestOneInput /src/fuzz-libelf.c:82:3 #4 0x4551d2 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:611:15 #5 0x440d82 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:324:6 #6 0x4465ec in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:860:9 #7 0x46ef82 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10 #8 0x7fd73ce3f0b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/libc-start.c:308:16 #9 0x41f4cd in _start Uninitialized value was created by a heap allocation #0 0x4d49ad in __interceptor_malloc /src/llvm-project/compiler-rt/lib/msan/msan_interceptors.cpp:911:3 #1 0x53feb1 in __libelf_decompress /src/elfutils/libelf/elf_compress.c:227:19 #2 0x5408d7 in __libelf_decompress_elf /src/elfutils/libelf/elf_compress.c:300:19 #3 0x538903 in get_zdata /src/elfutils/libelf/elf_strptr.c:45:17 #4 0x537c19 in elf_strptr /src/elfutils/libelf/elf_strptr.c:135:38 #5 0x527361 in fuzz_logic_one /src/fuzz-libelf.c:37:26 #6 0x527cec in LLVMFuzzerTestOneInput /src/fuzz-libelf.c:82:3 #7 0x4551d2 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:611:15 #8 0x440d82 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:324:6 #9 0x4465ec in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:860:9 #10 0x46ef82 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10 #11 0x7fd73ce3f0b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/libc-start.c:308:16 -- 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.