home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c      Meh, in C you gotta define EVERYTHING      243,242 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 242,614 of 243,242   
   BGB to BGB   
   Re: srand(0)   
   26 Dec 25 15:12:48   
   
   From: cr88192@gmail.com   
      
   On 12/26/2025 2:48 PM, BGB wrote:   
      
   >   
   > Though one possibility could be to increase the strength of stack-   
   > canaries by flagging them with relocs, allowing the program loader to   
   > itself re-jitter the canary values without needing a recompile.   
   >   
   >   
   > Well, and GCC compiled code has an additional weakness here in that GCC   
   > doesn't normally use stack canaries (they seemingly do very little to   
   > give binaries any kind of resistance against buffer overflow exploits).   
   >   
      
   Groan... Self clarification:   
   GCC does have an option to enable stack canaries, but it is opt-in   
   rather than enabled by default (say, in MSVC one would need to opt-out   
   instead).   
      
   What I wrote could be misinterpreted, I meant GCC's default settings do   
   little in the case of protecting against stack overflows (and was *not*   
   implying that canaries were ineffective).   
      
   But, alas, now people will probably be misinterpreting what I wrote and   
   now I will need to deal with this, grr...   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca