Bug 22352

Summary: found overlapping data buffer in libX11-1.1.5
Product: xorg Reporter: ettlmartin <ettl.martin>
Component: Lib/XlibAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED DUPLICATE QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description ettlmartin 2009-06-18 13:51:03 UTC
Hello,

i checked the sorces of libX11-1.1.5 with static code analyis tool cpppcheck. It brought up an issue in file libX11-1.1.5/modules/om/generic/omGeneric.c at line 618. 

Cppcheck has the following output:

[libX11-1.1.5/modules/om/generic/omGeneric.c:618]: (error) Overlapping data buffer rotate_font_ptr

Take a look at the sourecode (line 618):

sprintf(rotate_font_ptr, "%s-%s", rotate_font_ptr, fields[field_num]);

Indeed, cppcheck is right.


Best regards

Ettl Martin
Comment 1 Alan Coopersmith 2009-06-18 13:55:17 UTC
Fixed over a year ago in git master, released in libX11 1.2.0 in Feb. 2009.
Comment 2 Alan Coopersmith 2009-06-18 13:56:07 UTC

*** This bug has been marked as a duplicate of bug 14898 ***

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.