This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
The Stack Smashing Protector does not include functions with wide character arrays. The following code wouldn't be protected:
#include <wchar.h>
int main (void) { wchar_t buf[8];
wcscpy (buf, L"Hello World!");
return 0; }
Attached patch solves this problem. Tested on i686 <cfgexpand.c.patch>
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |