Bug 824120 - Invalid read of size 1
Summary: Invalid read of size 1
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Fedora Packaging Toolset Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-22 18:59 UTC by Nikola Pajkovsky
Modified: 2014-02-02 22:16 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-23 13:21:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Nikola Pajkovsky 2012-05-22 18:59:02 UTC
after calling rpmReadConfigFiles(NULL, NULL); valgrind yells 

==7516== Invalid read of size 1
==7516==    at 0x4C29162: __GI_strlen (mc_replace_strmem.c:391)
==7516==    by 0x55A1BE5: strdup (in /usr/lib64/libc-2.15.so)
==7516==    by 0x4E6AF49: defaultMachine (rpmrc.c:1046)
==7516==    by 0x4E6C615: rpmSetMachine (rpmrc.c:1460)
==7516==    by 0x4E6C91C: rpmRebuildTargetVars.constprop.6 (rpmrc.c:1557)
==7516==    by 0x4E6CF73: rpmReadConfigFiles (rpmrc.c:1776)
==7516==    by 0x4022FC: main (abrt-bodhi.c:330)
==7516==  Address 0x7fff52841d09 is not stack'd, malloc'd or (recently) free'd

all it starts in abrt-bodhi.c:330 which is line contains 

330 int status = rpmReadConfigFiles((const char *) NULL, (const char *) NULL);

http://git.fedorahosted.org/git/?p=libreport.git;a=blob;f=src/plugins/abrt-bodhi.c;h=3275086a0d19659e9f8a25bb297cb05a69179d9f;hb=HEAD#l327

I have slightly modified abrt-bodhi.c, but it's not related to rpm (tested w/o my changes) 

Version-Release number of selected component (if applicable):
rpm is taken from updates-testing repo

[npajkovs@f17-virt libreport]$ rpm -q rpm
rpm-4.9.1.3-7.fc17.x86_64

Comment 1 Panu Matilainen 2012-05-23 13:21:30 UTC
This is a valgrind anomaly (or false positive if you like) triggered by rpm now reading /proc/self/auxv, see https://bugs.kde.org/show_bug.cgi?id=253519


Note You need to log in before you can comment on or make changes to this bug.