DragonFly BSD
DragonFly bugs List (threaded) for 2006-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: joerg@xxxxxxxxxxxxxxxxx
Date: Mon, 19 Jun 2006 13:30:51 +0200
Mail-followup-to: bugs@crater.dragonflybsd.org

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



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