[Top][All Lists]

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

bug#17793: Gentoo gcc 4.8.3 build problem: -fstack-protector [also, Re:

From: Paul Eggert
Subject: bug#17793: Gentoo gcc 4.8.3 build problem: -fstack-protector [also, Re: bug#17754]
Date: Tue, 17 Jun 2014 12:28:54 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

behoffski wrote:

         In file included from mbsstr.c:32:0:
         str-kmp.h: In function 'knuth_morris_pratt':
         str-kmp.h:35:1: error: stack protector not protecting local
variables: variable length buffer [-Werror=stack-protector]
          knuth_morris_pratt (const UNIT *haystack,

These warnings don't indicate any bugs in the code; they're merely about incomplete run-time checking in the underlying implementation. I was particularly amused by a refusal to compile a function on the grounds that its code doesn't use the stack!

So let's just disable the warnings.  I pushed the attached patch.

Valgrind and -fsanitize=address are incompatible

Thanks, I didn't know that. Too bad, but understandable. Neither tool dominates the other, so I guess we'll have to use them separately.

Attachment: 0001-build-avoid-Wstack-protector.patch
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]