summaryrefslogtreecommitdiff
path: root/includes/dhcpd.h
diff options
context:
space:
mode:
authorShawn Routhier <sar@isc.org>2016-01-15 19:49:23 -0800
committerShawn Routhier <sar@isc.org>2016-01-15 19:49:23 -0800
commit4ced250f58d646a466ebcafdbbdb215bcf724638 (patch)
treee9b37fcf43273c82afd4191ae74397f1084097ab /includes/dhcpd.h
parenteda1d0aa5a24f46de742bf7fd2989ae58d72cf78 (diff)
downloadisc-dhcp-4ced250f58d646a466ebcafdbbdb215bcf724638.tar.gz
[master] 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()
Diffstat (limited to 'includes/dhcpd.h')
-rw-r--r--includes/dhcpd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/dhcpd.h b/includes/dhcpd.h
index 230df59f..4270edca 100644
--- a/includes/dhcpd.h
+++ b/includes/dhcpd.h
@@ -2487,6 +2487,7 @@ void data_string_copy(struct data_string *, const struct data_string *,
const char *, int);
void data_string_forget (struct data_string *, const char *, int);
void data_string_truncate (struct data_string *, int);
+int data_string_terminate (struct data_string *, const char *, int);
int executable_statement_allocate (struct executable_statement **,
const char *, int);
int executable_statement_reference (struct executable_statement **,