Re: Stack protector warnings?

Valery Ushakov <[email protected]>
Newsgroups gmane.os.netbsd.devel.toolchain
Message-ID <[email protected]>
On Thu, Nov 03, 2022 at 10:45:32 +0000, nia wrote:

> To build many network-related and otherwise security-relevant
> parts of src we use:
> 
> COPTS+= -fstack-protector -Wstack-protector
> 
> For pkgsrc, we use -fstack-protector-strong. Many others are
> also using this, and it seems like it's more useful (it
> does something that seems "obvious" to me, protecting functions
> with local array definitions).

Out of curiousity: can someone with a clue, please, summarize the
difference in a way that is more clear than gcc.info?  The way it's
worded is "buffers larger than or equal to 8 bytes" for
-fstack-protector vs. "have local array definitions" for
-fstack-protector-strong which is kinda ...  vague.  Is it "large"
local arrays vs. any local arrays?

-uwe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.