[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#315667: stack smash gcc



Package: gcc-3.3
Severity: normal
Tags: security

When compilation of the included C program is attempted with "gcc
-std=gnu99 usnoquery.c.FREEZE.c", the compilation stalls, apparently
indefinitely.

Tagged security because it supposedly involves a stack smash:

  #47 0xb7f15c43 in malloc () from /lib/tls/libc.so.6
  Previous frame inner to this frame (corrupt stack?)

valgrind doesn't report any invalid accesses, nor does MALLOC_CHECK_
reveal anything useful.

Justin

(Note that this code fragment is the result of deleting lots of other
code, in an attempt to discover the minimal test case.  Right now, the
code doesn't make much sense, and I know that.)

#include <string.h>
int main(int argc, char **t)
{
#define	UNEXPT_URL(s)	do {\
	foo();\
}
	UNEXPT_URL("");
	UNEXPT_URL(t);

	if (strcmp(t, "_fch.html")) UNEXPT_URL();
}



Reply to: