Back to list
*Note: Email address will appear as "user domain ext" to prevent harvesting.
gcc 4.1 bug miscompiles pointer range checks, may place you at risk
Apr 17 2006 08:03PM
Felix von Leitner (felix-bugtraq fefe de)
I wrote a small library of functions to do typical range checks as they
are needed in code that handles incoming packets or messages from
untrusted sources. My impetus was SMB code, in case you want to know.
Here is one of my functions:
static inline int range_ptrinbuf(const void* buf,unsigned lo...
[ more ]
Copyright 2010, SecurityFocus