Messages in this thread | | | Subject | Re: [PATCH 0/2] vsprintf: ignore %n again | From | Tetsuo Handa <> | Date | Thu, 19 Sep 2013 11:11:57 +0900 |
| |
Kees Cook wrote: > > ---------- output start ---------- > > const : literal > > not const : const char * > > not const : const char [] > > const : const char * const > > What version of gcc did you use? I don't get the last as const, for > some reason. And as Dan mentions, shouldn't const char[] be detected > as const too?
This worked on
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3) gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
with -On (where n != 0), but didn't work on
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
. Oops...
| |