Bug 50252

Summary: Correct undefined behaviour access to out of scope pointer contents
Product: xorg Reporter: Paulo César Pereira de Andrade <pcpa>
Component: Lib/XawAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: major    
Priority: medium Keywords: patch
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
0001-Correct-undefined-behavior-access-to-out-of-scope-po.patch none

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.