Bug 96980

Summary: xvinfo crashes if Xv query functions fail
Product: xorg Reporter: Tobias Stoeckmann <tobias>
Component: App/otherAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium Keywords: patch
Version: git   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
patch to fix this issue none

Description Tobias Stoeckmann 2016-07-18 21:15:51 UTC
Created attachment 125134 [details] [review]
patch to fix this issue

If one of the query functions fail, xvinfo does not properly handle
these cases and will most likely run into a segmentation fault due
to accessing uninitialized variables (which includes pointers).
Comment 1 Alan Coopersmith 2018-03-25 00:55:02 UTC
Thanks for the patch, pushed now:

To ssh://git.freedesktop.org/git/xorg/app/xvinfo
   b792adf..b086401  master -> master

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.