]> git.ozlabs.org Git - ccan/commit
tal: remove undefined behavior.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 22 Mar 2023 02:12:18 +0000 (12:42 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 30 May 2023 02:56:01 +0000 (12:26 +0930)
commit5465da47e3e0f2d09dc34b27cf2f3bc028478df4
treec57b36a2729946c6e3228223fc3f34533fd1a44b
parent4c4de2df2c65453b8ca9592ccd21ce1b50f216a7
tal: remove undefined behavior.

In particular, we were casting between struct prop_hdr ** and char **:
fixing this properly was quite a rework.

And in one case we were using a pre-realloc pointer in tests: though to be
fair, we tested it for equality.  But ubsan got upset anyway.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/tal/tal.c
ccan/tal/test/run-notifier.c