Fixup a bunch of bad calls to talloc_memdup
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 9 Apr 2015 21:24:11 +0000 (17:24 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 9 Apr 2015 21:25:10 +0000 (17:25 -0400)
commitd138a9d6c379227a2802b3ff656da01541098b24
tree17f842a1e665cac14e3ae4b79c867c6df42d670e
parentc1ae6a7fdd25c2df4b5ffe570ba1940df0ad6d6b
Fixup a bunch of bad calls to talloc_memdup

The bulk of these either copied len + 1 (which is wrong, as we can't guarantee the next byte is \0 or is a valid address) or were used in places, where the duped buffer may have been expected to be \0 terminated.
src/include/missing-h
src/lib/filters.c
src/lib/missing.c
src/lib/print.c
src/lib/value.c
src/main/map.c
src/main/tmpl.c
src/main/xlat.c