<p>This file causes a read access to an invalid memory area.</p>
<p><a href="https://github.com/rpm-software-management/rpm/files/736804/rpm-invalid-read-doFind-providePackageNVR.zip">rpm-invalid-read-doFind-providePackageNVR.zip</a></p>
<p>asan error:</p>
<pre><code>==10120==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000444fe0 bp 0x7ffc6b5de6d0 sp 0x7ffc6b5dde40 T0)
==10120==The signal is caused by a READ memory access.
==10120==Hint: address points to the zero page.
    #0 0x444fdf in __interceptor_strcmp.part.26 (/r/rpm/rpm+0x444fdf)
    #1 0x53d4d4 in doFind /f/rpm/rpm/lib/rpmds.c:830:15
    #2 0x5cbc79 in providePackageNVR /f/rpm/rpm/lib/headerutil.c:362:9
    #3 0x5cbc79 in legacyRetrofit /f/rpm/rpm/lib/headerutil.c:391
    #4 0x5cbc79 in headerConvert /f/rpm/rpm/lib/headerutil.c:410
    #5 0x6378a7 in rpmpkgRead /f/rpm/rpm/lib/package.c:403:6
    #6 0x6378a7 in rpmReadPackageFile /f/rpm/rpm/lib/package.c:432
    #7 0x579658 in tryReadHeader /f/rpm/rpm/lib/rpminstall.c:353:17
    #8 0x579658 in rpmInstall /f/rpm/rpm/lib/rpminstall.c:537
    #9 0x5057ae in main /f/rpm/rpm/rpmqv.c:295:12
    #10 0x7fc1d8fc478f in __libc_start_main (/lib64/libc.so.6+0x2078f)
    #11 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/136">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ANb804oioZqn-cLP2EBMmC6QZNziZlJmks5rWwt8gaJpZM4Lwdtp">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ANb80ypNwFJnFLOxoC9uE48LnnJ2wD9sks5rWwt8gaJpZM4Lwdtp.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/136"></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 memory read in function providePackageNVR / doFind (#136)"}],"action":{"name":"View Issue","url":"https://github.com/rpm-software-management/rpm/issues/136"}}}</script>