Properly handle sscanf return value in ./src/secp256k1/src/tests.c #16385

issue ghost opened this issue on July 14, 2019
  1. ghost commented at 4:32 AM on July 14, 2019: none

    A bug exists which allows the sh variable to be used uninitialized when sscanf returns EOF.

    Observe:

    https://github.com/bitcoin/bitcoin/blob/536590f358dc3d3e5821eba7f1009452ea93b205/src/secp256k1/src/tests.c#L5019-L5040

    A simple fix would be to explicitly test if sscanf's return value is equal to 1.

  2. fanquake commented at 4:34 AM on July 14, 2019: member

    Please send any issues in relation to secp256k1 to the upstream repository: https://github.com/bitcoin-core/secp256k1.

  3. fanquake closed this on Jul 14, 2019

  4. DrahtBot locked this on Dec 16, 2021
Contributors

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-17 15:14 UTC

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