Avoid VLA in hash.h #9791

pull sipa wants to merge 1 commits into bitcoin:master from sipa:novla changing 1 files +4 −4
  1. sipa commented at 11:29 PM on February 17, 2017: member

    No description provided.

  2. Avoid VLA in hash.h 5c8fd50811
  3. gmaxwell approved
  4. gmaxwell commented at 11:46 PM on February 17, 2017: contributor

    utACK.

  5. fanquake added the label Validation on Feb 18, 2017
  6. paveljanik commented at 7:23 AM on February 18, 2017: contributor
  7. sipa commented at 9:47 AM on February 18, 2017: member

    To clarify: my GCC does not consider this to be a VLA, but at least some Clang versions do.

  8. laanwj commented at 10:00 AM on February 18, 2017: member

    Well I think this makes the code clearer too, so it's a win in any case.

  9. MarcoFalke commented at 10:28 AM on February 18, 2017: member

    5c8fd508112016c3821b71112270afe83e6949ac gives same binaries with recent gcc on my arch.

    utACK 5c8fd508112016c3821b71112270afe83e6949ac

  10. laanwj merged this on Feb 19, 2017
  11. laanwj closed this on Feb 19, 2017

  12. laanwj referenced this in commit 1f9e904f45 on Feb 19, 2017
  13. laanwj referenced this in commit 1825a03f81 on Feb 28, 2017
  14. codablock referenced this in commit 16b2a1d1b9 on Jan 26, 2018
  15. dagurval cross-referenced this on Apr 25, 2018 from issue Introduce CHashVerifier + specialization of SipHash for 256 + 32 bit data by dagurval
  16. sickpig cross-referenced this on Jun 20, 2018 from issue [PORT] threat warning on VLA as error if `--enable-werror` is specifed by sickpig
  17. andvgal referenced this in commit 334bf259f3 on Jan 6, 2019
  18. CryptoCentric referenced this in commit 3a11138451 on Feb 27, 2019
  19. bitcoin 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-05-19 06:54 UTC