Blame SOURCES/ntp-4.2.6p5-decodenetnum.patch

9e87e2
Author:  <stenn@psp-deb1.ntp.org>
9e87e2
Date:   Tue Oct 6 08:51:27 2015 +0000
9e87e2
9e87e2
    [Sec 2922] decodenetnum() will ASSERT botch instead of returning FAIL on some bogus values.  Harlan Stenn.
9e87e2
9e87e2
diff --git a/libntp/decodenetnum.c b/libntp/decodenetnum.c
9e87e2
index ebcb2da69..35b908f39 100644
9e87e2
--- a/libntp/decodenetnum.c
9e87e2
+++ b/libntp/decodenetnum.c
9e87e2
@@ -36,7 +36,10 @@ decodenetnum(
9e87e2
 	char name[80];
9e87e2
 
9e87e2
 	NTP_REQUIRE(num != NULL);
9e87e2
-	NTP_REQUIRE(strlen(num) < sizeof(name));
9e87e2
+
9e87e2
+	if (strlen(num) >= sizeof(name)) {
9e87e2
+		return 0;
9e87e2
+	}
9e87e2
 
9e87e2
 	port_str = NULL;
9e87e2
 	if ('[' != num[0]) {