|
From: Patrick K. <pk...@su...> - 2007-09-24 11:15:30
|
Hey, Can you add the parameter "-D_FORTIFY_SOURCE=2" as a standard for compiling posix-testcases? FORTIFY_SOURCE is a Glibc feature which adds memory and string function protection. There is no home site for this feature, but it is described well on this page: http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02055.html With FORTIFY_SOURCE option compiling, I saw a lot testcases segfaulting, due to too short char array, see attached patch (they all have the same problem, the former char array size of 20 iss too short, if the PID is randomly too large). Regards, -- Patrick Kirsch - Quality Assurance Department SUSE Linux Products GmbH GF: Markus Rex, HRB 16746 (AG Nuernberg) |