Bug 22352 - found overlapping data buffer in libX11-1.1.5
Summary: found overlapping data buffer in libX11-1.1.5
Status: RESOLVED DUPLICATE of bug 14898
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xlib (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-18 13:51 UTC by ettlmartin
Modified: 2009-06-18 13:56 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.