Library podcasts

GoingDeep: Louis Lafreniere: Next Generation Buffer Overrun Protection - gs++

GoingDeep

From the C++ Team Blog: A lot of code written in C and C++ has vulnerabilities that leave their users open to buffer overrun attacks. There are two major reasons for this. One reason is that the languages provide unfettered access to the vulnerable memory; the other reason is that developers make...

Running time
0h31m
File size
14.00MB

Download Original File | View original post

Episode synopsis

From the C++ Team Blog: A lot of code written in C and C++ has vulnerabilities that leave their users open to buffer overrun attacks. There are two major reasons for this. One reason is that the languages provide unfettered access to the vulnerable memory; the other reason is that developers make mistakes. The simple fact is that even following the best practices and performing quality checks, by the end of the day, no developers can get 100 percent of their code right all the time. Thus, additional built-in layers of defense to help track down vulnerable areas of code are in order. The Visual C++ compiler’s GS switch, which is on by default, is one of the built-in defenses designed to mitigate the buffer overrun attacks.

With VC 10, the next iteration of VC that ships with Visual Studio 2010, Louis Lafreniere and team have delivered the next iteration of /gs, gs++. /gs proved to be invaluable for C++ developers wanting compile time checking for buffer overrun vulnerabilities in their code. specifically targetting string buffers. Well, turns out that certain structs proved to be a suitable exploit and /gs did not check data structures like structs. Louis et al, with gs++, now check for struct vulnerability. Very cool. Thanks guys!

Here, Principal Developer Louis Lafreniere takes us through the history and future of /gs, in a deep way, of course. Most of the time is spent at the whiteboard mapping out exactly how /gs works and what to expect from gs++.

Enjoy!

Comments

Leave a comment

Sign in or Join us (it's free).

Events coming up

  • Dec 3

    December Meeting: Topic TBD

    Mountain View, United States

    We will be meeting at the normal time in the usual place in December. The topic is yet to be determined.

Want to stay in touch with what's going on? Follow us on twitter!