]> git.ozlabs.org Git - ccan/commit - ccan/tal/str/str.c
tal/str: fix error in tal_strndup()
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 16 Oct 2015 19:42:40 +0000 (06:12 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 16 Oct 2015 19:42:40 +0000 (06:12 +1030)
commit28681e0a15c453e86528ca488415e2220cbe0f0a
tree02315007db66f01851f0906be94a3d2c5e34e7ac
parent6e5c2f3f55d4e537ccc69703cc41a4295afcd170
tal/str: fix error in tal_strndup()

It used strlen() on the source, which might not be valid.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/tal/str/str.c
ccan/tal/str/test/run-strndup.c [new file with mode: 0644]