another SSP bug? (Re: userland ppp ("No context" errors))

joerg at britannica.bec.de joerg at britannica.bec.de
Mon Jun 19 04:33:36 PDT 2006


On Mon, Jun 19, 2006 at 07:06:40PM +0900, YONETANI Tomokazu wrote:
> This seems like another stack-smash-protector bug and still lives
> in our compiler, only triggered when you use -O(s|[2-9]) flags AND
> -march flag (which defaults to pentiumpro) .

-march or -mcpu? The former is certainly not default and can trigger a
variety of bugs.

> If you do one of the following and the problem disappears:
>  - add -fno-stack-smash-protector to CFLAGS
>  - change prefix[] in function FindExec() shown below to a static array
>    so as there's no char array in the local parameter. char array of
>    size more than 8 bytes on the stack can trigger the bug.

Well, under 8 byte the stack protection would not be active.

Joerg





More information about the Bugs mailing list