David LeBlanc's Web Log
April 2008 - Posts
More on Checking Allocations
Seems my last post met with some objections – somewhat rightfully so, as I mischaracterized one of Tom's points – he never advocated just not checking for allocations, but instead to use an allocator that has a non-returning error handler – though it
Read More...
Checking Allocations & Potential for Int Mayhem
Must be synchronicity. I started out the day with a really interesting mail from Chris Wysopal talking about how allocations can go wrong, fun with signed int math, and the new[] operator. Once I got done responding to Chris, I then notice Robert Hensing's
Read More...
More Checking for Pointer Math
Someone pointed out that it isn't sufficient to check for whether the pointer math wrapped, but that we also need to check that the resulting pointer is in our buffer. They then came to the possibly erroneous conclusion that really all you had to do was
Read More...
Evil Compiler Tricks, and Checking for Pointer Math
My favorite programming geek hobby being integer overflows, this caught my eye – "gcc silently discards some wraparound checks" http://www.kb.cert.org/vuls/id/162289 Basically, what it says is that code which looks like this: ============ snip ==============
Read More...
Search
This Blog
Home
About
Email
Tags
Development
Integer Overflows
Office Crypto
Other
Secure Development
Security Misc
Vulns
Archives
July 2009 (1)
May 2009 (1)
February 2009 (1)
January 2009 (2)
December 2008 (3)
November 2008 (2)
October 2008 (1)
September 2008 (4)
July 2008 (2)
June 2008 (2)
April 2008 (4)
March 2008 (2)
February 2008 (7)
January 2008 (7)
December 2007 (3)
November 2007 (1)
October 2007 (5)
September 2007 (3)
August 2007 (4)
July 2007 (7)
June 2007 (1)
May 2007 (3)
April 2007 (11)
March 2007 (7)
Syndication
RSS 2.0
Atom 1.0