]> git.ipfire.org Git - thirdparty/dhcp.git/commit
[v4_1_esv] Terminate strings before calling regexec
authorShawn Routhier <sar@isc.org>
Sat, 16 Jan 2016 03:54:39 +0000 (19:54 -0800)
committerShawn Routhier <sar@isc.org>
Sat, 16 Jan 2016 03:54:39 +0000 (19:54 -0800)
commit0ea8ebad76e88fb6fc0987b3fbadcdc33ca4dc31
treebbde944a7c7dd7fae140f62862a850091d386327
parent1093d6f9fe986081436c0be0b3707a8a653e18b2
[v4_1_esv] Terminate strings before calling regexec

    Make sure strings are terminated before callng regexec.
    If they are we can simply copy the pointers, if they
    aren't we need to copy the string into a new block
    of memory.

    Fix a boundary error in data_string_new()
RELNOTES
common/alloc.c
common/tests/test_alloc.c
common/tree.c
includes/dhcpd.h