Bug 50252 - Correct undefined behaviour access to out of scope pointer contents
Summary: Correct undefined behaviour access to out of scope pointer contents
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xaw (show other bugs)
Version: unspecified
Hardware: All All
: medium major
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2012-05-22 16:54 UTC by Paulo César Pereira de Andrade
Modified: 2012-05-24 18:13 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
0001-Correct-undefined-behavior-access-to-out-of-scope-po.patch (1.09 KB, patch)
2012-05-22 16:56 UTC, Paulo César Pereira de Andrade
no flags Details | Splinter Review

Description Paulo César Pereira de Andrade 2012-05-22 16:54:51 UTC
There is a problem with libXaw that is triggered by gcc 4.7,
due to a variable set to a constant string inside a block.
  The undefined behaviour is that the string in the block is
not guaranteed to go to some constant pool with global scope.

  This patch is required for any code that uses the Xaw text
widget and is built with gcc 4.7.
Comment 1 Paulo César Pereira de Andrade 2012-05-22 16:56:10 UTC
Created attachment 61989 [details] [review]
0001-Correct-undefined-behavior-access-to-out-of-scope-po.patch
Comment 2 Alan Coopersmith 2012-05-24 18:13:59 UTC
Thanks - fix pushed to git master:
http://cgit.freedesktop.org/xorg/lib/libXaw/commit/?id=11c3a104141e1a4946ad949dfb5514df0b66a031


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.