Bug 96980 - xvinfo crashes if Xv query functions fail
Summary: xvinfo crashes if Xv query functions fail
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: App/other (show other bugs)
Version: git
Hardware: All All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2016-07-18 21:15 UTC by Tobias Stoeckmann
Modified: 2018-03-25 00:55 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
patch to fix this issue (2.33 KB, patch)
2016-07-18 21:15 UTC, Tobias Stoeckmann
no flags Details | Splinter Review

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.