Re: MIT discovered issue with gcc

2013-11-23 Thread Robert Baron
Second question: Doesn't memcpy allow for overlapping memory, but strcpy does not? Isn't this why memcpy is preferred over strcpy? On Sat, Nov 23, 2013 at 10:09 AM, Robert Baron < robertbartlettba...@gmail.com> wrote: > Aren't many of the constructs used as examples i

Re: MIT discovered issue with gcc

2013-11-23 Thread Robert Baron
Aren't many of the constructs used as examples in the paper are commonly used in c programming. For example it is very common to see a function that has a pointer as a parameter defined as: int func(void *ptr) { if(!ptr) return SOME_ERROR; /* rest of function*/ return 1; } I