Opened 18 years ago

Closed 18 years ago

#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 (1)

comment:1 Changed 18 years ago by bennylp

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

Done in r1361

Note: See TracTickets for help on using tickets.