bugThe FreeType Project - Bugs: bug #42182, ttdebug.c:1908: snprintf size off...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #42182: ttdebug.c:1908: snprintf size off by one

Submitter:  David Binderman <dcb314>
Submitted:  Thu 24 Apr 2014 09:39:06 AM UTC
   
 
Severity:  3 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  wl Open/Closed:  Closed
Planned Release:  2.5.4

Sun 11 May 2014 10:55:24 AM UTC, comment #1: 

Fixed in git, thanks.

Werner LEMBERG <wl>
Group administrator
Thu 24 Apr 2014 09:39:06 AM UTC, original submission:  

[src/ttdebug.c:1908]: (error) snprintf size is out of bounds: Supplied size 65 is larger than actual size 64.

      offset = snprintf( version_string, 64 + 1,
                         "ttdebug (FreeType) %d.%d",
                         major, minor );

Better code might be

      offset = snprintf( version_string, 64,
                         "ttdebug (FreeType) %d.%d",
                         major, minor );

David Binderman <dcb314>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by wl (Posted a comment)
  • -email is unavailable- added by dcb314 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-05-11 wl StatusNone Fixed
        Assigned toNone wl
        Open/ClosedOpen Closed
        Planned ReleaseNone 2.5.4

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code