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


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

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

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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

Fixed in git, thanks.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
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.)

Attach Files:

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)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    Sun 11 May 2014 10:55:24 AM UTC wl StatusNone => Fixed
        Assigned toNone => wl
        Open/ClosedOpen => Closed
        Planned ReleaseNone => 2.5.4

    Back to the top

    Powered by Savane 3.3