[Rpm-maint] [rpm-software-management/rpm] invalid memory read in rstreqn / rpmdsNewPool (#137)

Hanno Böck notifications at github.com
Sat Jan 28 09:37:17 UTC 2017

The attached file causes an invalid memory read access with rpm -i --test.


asan error:
==5681==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000442d96 bp 0x7ffccc0307b0 sp 0x7ffccc02ff10 T0)
==5681==The signal is caused by a READ memory access.
==5681==Hint: address points to the zero page.
    #0 0x442d95 in __interceptor_strncmp.part.68 (/r/rpm/rpm+0x442d95)
    #1 0x534748 in rstreqn /f/rpm/rpm/lib/../include/rpm/rpmstring.h:127:13
    #2 0x534748 in rpmdsNewPool /f/rpm/rpm/lib/rpmds.c:349
    #3 0x58f49b in addTE /f/rpm/rpm/lib/rpmte.c:163:19
    #4 0x58f49b in rpmteNew /f/rpm/rpm/lib/rpmte.c:241
    #5 0x512642 in addPackage /f/rpm/rpm/lib/depends.c:438:9
    #6 0x5122e9 in rpmtsAddInstallElement /f/rpm/rpm/lib/depends.c:493:12
    #7 0x57a1d4 in rpmInstall /f/rpm/rpm/lib/rpminstall.c:584:11
    #8 0x5057ae in main /f/rpm/rpm/rpmqv.c:295:12
    #9 0x7f6ad35aa78f in __libc_start_main (/lib64/libc.so.6+0x2078f)
    #10 0x41c648 in _start (/r/rpm/rpm+0x41c648)

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170128/e5e3d6ff/attachment.html>

More information about the Rpm-maint mailing list