Added a workaround for an Ubuntu bug which causes -fstack-protector-all t #586

pull cjdelisle wants to merge 1 commits into bitcoin:master from cjdelisle:hardening-bug-workaround changing 1 files +6 −1
  1. cjdelisle commented at 12:33 AM on October 17, 2011: none

    Added a workaround for an Ubuntu bug which causes -fstack-protector-all to be disregarded. this causes some functions not to be protected and leads to a warning: "warning: not protecting function: no buffer at least 8 bytes long" The bug which this is working around: https://bugs.launchpad.net/ubuntu/+source/gcc-4.5/+bug/691722

  2. gmaxwell commented at 12:36 AM on October 17, 2011: contributor

    This looks completely reasonable to me. On non-broken systems it will be a no-op, so the workaround can remain indefinitely with no cost... and only get dropped when someone gets around to reviewing the hardening settings at some point in the future.

    I don't have a broken ubuntu system to try this on, but I can confirm that its harmless on F14's GCC 4.5.1.

  3. Added a workaround for an Ubuntu bug which causes -fstack-protector-all to be disregarded. 1e5f939381
  4. TheBlueMatt commented at 1:46 AM on October 17, 2011: member

    ACK

  5. laanwj commented at 7:28 PM on October 17, 2011: member

    ACK, makefiles can never have enough hacks and workarounds :-)

  6. alexwaters commented at 6:05 AM on October 20, 2011: contributor

    ACK

  7. gavinandresen referenced this in commit d760b5c979 on Oct 24, 2011
  8. gavinandresen merged this on Oct 24, 2011
  9. gavinandresen closed this on Oct 24, 2011

  10. coblee referenced this in commit d783a2f979 on Jul 17, 2012
  11. ptschip referenced this in commit 635c65144c on May 17, 2017
  12. kallewoof referenced this in commit 28ae91d7de on Oct 4, 2019
  13. rajarshimaitra referenced this in commit d29012d12f on Aug 5, 2021
  14. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-27 12:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me