]> git.bitcoin.ninja Git - ldk-c-bindings/commit
Expose a method to unmangle pointers in test builds
authorMatt Corallo <git@bluematt.me>
Mon, 29 Nov 2021 01:28:30 +0000 (01:28 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 30 Nov 2021 16:05:44 +0000 (16:05 +0000)
commitce0ec2494f33662d8cfb14efc00cb49d22190e2c
tree2f1b6b76fd2c0e3b1ec6a64acd8c935cc6a46cb0
parentc358de7979526421ebb18df376ee323a5dd6d96b
Expose a method to unmangle pointers in test builds

This is used by Java bindings to compare all pointers against those
returned by its malloc wrap, possibly catching some simple
use-after-free or invalid pointer deref bugs.

It is exposed only when built as debug and defined in C headers
with `LDK_DEBUG_BUILD` defined.
lightning-c-bindings/cbindgen.toml
lightning-c-bindings/src/c_types/mod.rs