Re: mudflap extention request

2006-01-23 Thread Frank Ch. Eigler
Herman ten Brugge <[EMAIL PROTECTED]> writes: > [...] Finally the question. Is it possible to add this extension to > mudflap so the above problem is found here as well. It is likely possible. The first one (array embedded in struct, indexed by run-time expression) is tricky. There is IIRC no

mudflap extention request

2006-01-23 Thread Herman ten Brugge
Hello, I recently debugged a program that had an array indexing problem. The simplified program is: typedef struct tst_struct { unsigned n; unsigned arr[3]; struct tst_struct *next; } tst; tst t = { 3, {0, 1, 2}, 0 }; int main (void) { t.arr[t.n++] = 3; } The 't.arr[t.n++]' overwrites the