[Git][NTPsec/ntpsec][master] ntp_control: Shut up a coverity warning about dead code.

Gary E. Miller gitlab at mg.gitlab.com
Mon Oct 29 19:45:01 UTC 2018


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
9a93cda0 by Gary E. Miller at 2018-10-29T19:44:16Z
ntp_control: Shut up a coverity warning about dead code.

This is to prevent reoccurance of overwriting the end of a buffer.

- - - - -


1 changed file:

- ntpd/ntp_control.c


Changes:

=====================================
ntpd/ntp_control.c
=====================================
@@ -887,6 +887,7 @@ process_control(
 	 * Set up translate pointers
 	 */
 	reqpt = (char *)pkt->data;
+        /* coverity[deadcode] backstop to prevent stack overflow */
 	if (CTL_MAX_DATA_LEN < req_count) {
                 /* count too big */
 		ctl_error(CERR_BADFMT);



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/9a93cda026083a2cb3fac1e81758bfce9e4c56bf

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/9a93cda026083a2cb3fac1e81758bfce9e4c56bf
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20181029/a92e11e4/attachment-0001.html>


More information about the vc mailing list