From: bugzilla-daemon@freedesktop.org Subject: [Bug 109977] Segmentation fault in drmParsePlatformDeviceInfo Date: Tue, 12 Mar 2019 12:56:32 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1180150597==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 3992889E14 for ; Tue, 12 Mar 2019 12:56:32 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1180150597== Content-Type: multipart/alternative; boundary="15523953920.66E3FFB.19181" Content-Transfer-Encoding: 7bit --15523953920.66E3FFB.19181 Date: Tue, 12 Mar 2019 12:56:32 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D109977 Eric Engestrom changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED CC| |emil.l.velikov@gmail.com --- Comment #1 from Eric Engestrom --- Thanks! Your fix is correct, although partial: the same bug appears again in the fr= ee() a couple lines below. I've added it as part of your patch and pushed it: commit 4735ca71af9f741e2438104d543dc3c5a8107f35 Author: Andreas Baierl Date: Mon Mar 11 16:04:08 2019 +0100 xf86drm: Fix segmentation fault while parsing device info This fixes a bug, which was introduced with commit ee798b98 "xf85drm: de-duplicate drmParse{Platform.Host1x}{Bus,Device}Info". where accessing *compatible[i] with i>0 results in a segfault. Signed-off-by: Andreas Baierl Fixes: ee798b98479709acdd8d "xf85drm: de-duplicate drmParse{Platform.Host1x}{Bus,Device}Info" Reviewed-by: Eric Engestrom [Eric: add the same fix to the free() below] Signed-off-by: Eric Engestrom --=20 You are receiving this mail because: You are the assignee for the bug.= --15523953920.66E3FFB.19181 Date: Tue, 12 Mar 2019 12:56:32 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated Eric Engestrom changed bug 10997= 7
What Removed Added
Status NEW RESOLVED
Resolution --- FIXED
CC   emil.l.velikov@gmail.com

Commen= t # 1 on bug 10997= 7 from Eric Engestrom
Thanks!
Your fix is correct, although partial: the same bug appears again in the fr=
ee()
a couple lines below.
I've added it as part of your patch and pushed it:

commit 4735ca71af9f741e2438104d543dc3c5a8107f35
Author: Andreas Baierl <ichg=
eh@imkreisrum.de>
Date:   Mon Mar 11 16:04:08 2019 +0100

    xf86drm: Fix segmentation fault while parsing device info

    This fixes a bug, which was introduced with commit ee798b98
    "xf85drm: de-duplicate drmParse{Platform.Host1x}{Bus,Device}Info&q=
uot;.
    where accessing *compatible[i] with i>0 results in a segfault.

    Signed-off-by: Andreas Baierl <ichgeh@imkreisrum.de>
    Fixes: ee798b98479709acdd8d "xf85drm: de-duplicate
drmParse{Platform.Host1x}{Bus,Device}Info"
    Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
    [Eric: add the same fix to the free() below]
    Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>


You are receiving this mail because:
  • You are the assignee for the bug.
= --15523953920.66E3FFB.19181-- --===============1180150597== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1180150597==--