[Bug 109977] Segmentation fault in drmParsePlatformDeviceInfo
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Mar 12 12:56:32 UTC 2019
https://bugs.freedesktop.org/show_bug.cgi?id=109977
Eric Engestrom <fdo-bugs at engestrom.ch> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
CC| |emil.l.velikov at gmail.com
--- Comment #1 from Eric Engestrom <fdo-bugs at engestrom.ch> ---
Thanks!
Your fix is correct, although partial: the same bug appears again in the free()
a couple lines below.
I've added it as part of your patch and pushed it:
commit 4735ca71af9f741e2438104d543dc3c5a8107f35
Author: Andreas Baierl <ichgeh at 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".
where accessing *compatible[i] with i>0 results in a segfault.
Signed-off-by: Andreas Baierl <ichgeh at imkreisrum.de>
Fixes: ee798b98479709acdd8d "xf85drm: de-duplicate
drmParse{Platform.Host1x}{Bus,Device}Info"
Reviewed-by: Eric Engestrom <eric.engestrom at intel.com>
[Eric: add the same fix to the free() below]
Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20190312/193b6b90/attachment.html>
More information about the dri-devel
mailing list