[Bug 3541] New: buffer size safe va

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Wed Feb 13 16:44:00 EST 2008


http://bugzilla.icculus.org/show_bug.cgi?id=3541

           Summary: buffer size safe va
           Product: Quake 3
           Version: SVN HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P3
         Component: Misc
        AssignedTo: zakk at icculus.org
        ReportedBy: raynorpat at gmail.com
         QAContact: quake3-bugzilla at icculus.org


in q_shared.c around line 954:

/*
============
va

does a varargs printf into a temp buffer, so I don't need to have
varargs versions of all text functions.
FIXME: make this buffer size safe someday
============
*/

this patch makes va buffer size safe by using vsnprintf.

However, this patch could be improved by providing a vsnprintf for QVMs as the
patch just uses a simple wrapper.


-- 
Configure bugmail: http://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.



More information about the quake3-bugzilla mailing list