<p>The attached file causes an invalid memory read access.<br>
<a href="https://github.com/rpm-software-management/rpm/files/736811/rpm-invalidread-dataLength-grabData.zip">rpm-invalidread-dataLength-grabData.zip</a></p>
<p>asan error:</p>
<pre><code>==16740==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fd8bbe403c6 bp 0x7fff586b2130 sp 0x7fff586b18b8 T0)
==16740==The signal is caused by a READ memory access.
==16740==Hint: address points to the zero page.
    #0 0x7fd8bbe403c5 in strlen (/lib64/libc.so.6+0x7e3c5)
    #1 0x43b8bc in __interceptor_strlen.part.25 (/r/rpm/rpm+0x43b8bc)
    #2 0x5dbdd8 in dataLength /f/rpm/rpm/lib/header.c:432:13
    #3 0x5dbdd8 in grabData /f/rpm/rpm/lib/header.c:1364
    #4 0x5d95bc in intAddEntry /f/rpm/rpm/lib/header.c:1390:12
    #5 0x5d8a50 in headerPut /f/rpm/rpm/lib/header.c:1463:7
    #6 0x5b5c55 in addPrefixes /f/rpm/rpm/lib/relocation.c:64:3
    #7 0x5b5c55 in rpmRelocateFileList /f/rpm/rpm/lib/relocation.c:135
    #8 0x593a2f in getFiles /f/rpm/rpm/lib/rpmte.c:106:3
    #9 0x58f5db in addTE /f/rpm/rpm/lib/rpmte.c:173:16
    #10 0x58f5db in rpmteNew /f/rpm/rpm/lib/rpmte.c:241
    #11 0x512642 in addPackage /f/rpm/rpm/lib/depends.c:438:9
    #12 0x5122e9 in rpmtsAddInstallElement /f/rpm/rpm/lib/depends.c:493:12
    #13 0x57a1d4 in rpmInstall /f/rpm/rpm/lib/rpminstall.c:584:11
    #14 0x5057ae in main /f/rpm/rpm/rpmqv.c:295:12
    #15 0x7fd8bbde278f in __libc_start_main (/lib64/libc.so.6+0x2078f)
    #16 0x41c648 in _start (/r/rpm/rpm+0x41c648)
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/issues/138">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ANb80xeojWQNze9aadHb7DaWWz8sGj3uks5rWwzVgaJpZM4Lwdxo">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ANb80yoHQW-QxCZZZ9YiD6opl_7yvdZsks5rWwzVgaJpZM4Lwdxo.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/rpm-software-management/rpm/issues/138"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/rpm-software-management/rpm","title":"rpm-software-management/rpm","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/rpm-software-management/rpm"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"invalid read in dataLength / grabData (header.c) (#138)"}],"action":{"name":"View Issue","url":"https://github.com/rpm-software-management/rpm/issues/138"}}}</script>