Ticket #333 (closed enhancement: fixed)

Opened 10 years ago

Last modified 10 years ago

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

comment:1 Changed 10 years ago by bennylp

  • Status changed from new to closed
  • Resolution set to fixed

Done in r1361

Note: See TracTickets for help on using tickets.