[Bug 1865] New: extend snprintf to work on NULL
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Nov 15 06:41:46 PST 2004
Please do not reply to this email: if you want to comment on the bug, go to
the URL shown below and enter yourcomments there.
https://freedesktop.org/bugzilla/show_bug.cgi?id=1865
Summary: extend snprintf to work on NULL
Product: xorg
Version: CVS_head
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Lib/other
AssignedTo: xorg-bugzilla-noise at freedesktop.org
ReportedBy: ago at freedesktop.org
OtherBugsDependingO 1802
nThis:
A lot of platforms have snprintf code which works even if the supplied buffer is
NULL. eg snprintf(NULL, 0, format, ...) will give the size of the formatted string.
The patch adds a few checks for str == NULL to prevent segfaults.
--
Configure bugmail: https://freedesktop.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the xorg-bugzilla-noise
mailing list