Ticket #333 (closed enhancement: fixed)
Added buffer overflow detection in vsprintf emulation for Symbian
Reported by: | bennylp | Owned by: | bennylp |
---|---|---|---|
Priority: | normal | Milestone: | release-0.8.0 |
Component: | pjlib | Version: | trunk |
Keywords: | Cc: | ||
Backport to 1.x milestone: | Backported: |
Description
Symbian lacks snprintf()/vsnprintf(), so these functions are emulated with a call to vsprintf() in PJLIB's src/pj/compat/string_compat.c. The emulation function does not check for buffer overflow.
We could add a small code to detect if buffer has been overflowed by putting a marker character at the end of the buffer.
Change History
Note: See
TracTickets for help on using
tickets.
Done in r1361