Add some missing `VERIFY_CHECK(ctx != NULL)` #386

pull apoelstra wants to merge 1 commits into bitcoin-core:master from apoelstra:arg-check changing 1 files +4 −9
  1. apoelstra commented at 3:52 PM on April 26, 2016: contributor

    The ARG_CHECK macro requires that a variable called ctx exist and be non-NULL. However, in several functions that do not use the context variable, we simply ignore it with (void)ctx. Replace these with explicit checks for non-NULLness to avoid invalid memory accesses.

  2. Add some missing `VERIFY_CHECK(ctx != NULL)` for functions that use `ARG_CHECK`
    The `ARG_CHECK` macro requires that a variable called `ctx` exist and be
    non-NULL. However, in several functions that do not use the context variable,
    we simply ignore it with `(void)ctx`. Replace these with explicit checks for
    non-NULLness to avoid invalid memory accesses.
    bcc4881d3a
  3. sipa commented at 6:02 PM on May 8, 2016: contributor

    utACK

  4. sipa merged this on May 8, 2016
  5. sipa closed this on May 8, 2016

  6. sipa referenced this in commit 6875b013e6 on May 8, 2016
  7. apoelstra deleted the branch on Jun 19, 2017
Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 20:15 UTC

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