Thread: SprintF
View Single Post
  #3  
Old 12-04-2011, 02:36 PM
daerath
Sarnak
 
Join Date: Jan 2011
Location: Northern VA
Posts: 91
Default

Quote:
Originally Posted by provocating View Post
Nevermind, obviously I needed to RTFM.
At no point should you be using sprintf.

http://msdn.microsoft.com/en-us/library/bb288454.aspx

sprintf (and a host of other function calls) are at the root of essentially every buffer overflow.

banned.h and strsafe.h are your friends.
Reply With Quote