[Git][NTPsec/ntpsec][master] Forward port from Classic: [Bug 2937] nextvar() missing length check
Eric S. Raymond
gitlab at mg.gitlab.com
Sun Mar 20 20:54:49 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
b4224dad by Eric S. Raymond at 2016-03-20T16:54:14-04:00
Forward port from Classic: [Bug 2937] nextvar() missing length check
There was a scratchy version of tyhis fix on the development branch we
forked from.
- - - - -
1 changed file:
- ntpq/ntpq.c
Changes:
=====================================
ntpq/ntpq.c
=====================================
--- a/ntpq/ntpq.c
+++ b/ntpq/ntpq.c
@@ -2874,7 +2874,7 @@ nextvar(
len = srclen;
while (len > 0 && isspace((unsigned char)cp[len - 1]))
len--;
- if(len >= sizeof name)
+ if (len >= sizeof(name))
return 0;
if (len > 0)
memcpy(name, cp, len);
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/b4224dad642cbdc07b3f6c9287b67a9812690144
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160320/83a78b74/attachment.html>
More information about the vc
mailing list