[ View menu ]

Safer CRT. Or is it?

Sample x.c:
#include <stdlib.h>
#include <stdio.h>

int main (void)
{
char *s = “%s%s%s%s%s%s%s%s%s%s%s%s”;
printf(s, “boo”);
return 0;
}

Compile:
cl /Wall /Wp64 /GS /RTC1 x.c

Run and it will crash. The question here: what was the point then?

Reddit this / Add to del.icio.us / Digg this!

0 Comments

No comments

RSS feed Comments | TrackBack URI

Write Comment

 


 
XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>