[Git][NTPsec/ntpsec][904-null-pointer-dereference-in-cvt_sel240x-via-unchecked-strptime-return] Apply 1 suggestion(s) to 1 file(s)

Matt Selsky (@selsky) gitlab at mg.gitlab.com
Tue Nov 17 03:19:08 UTC 2026



Matt Selsky pushed to branch 904-null-pointer-dereference-in-cvt_sel240x-via-unchecked-strptime-return at NTPsec / ntpsec


Commits:
01dac122 by Matt Selsky at 2026-11-17T03:19:06+00:00
Apply 1 suggestion(s) to 1 file(s)


- - - - -


1 changed file:

- libparse/clk_sel240x.c


Changes:

=====================================
libparse/clk_sel240x.c
=====================================
@@ -123,7 +123,7 @@ cvt_sel240x( unsigned char *buffer,
 		buffer++;
 		buffer = (unsigned char *)strptime(
 			(const char *)buffer, "%Y:%j:%H:%M:%S", &ptime );
-                if (NULL == buffer ||
+		if (NULL == buffer ||
 		    '\x0d' != *(buffer+1) ) {
 			rc = CVT_FAIL | CVT_BADFMT;
 		} else {



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/01dac12204158f0b568f8494a59df1235ea63796

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/01dac12204158f0b568f8494a59df1235ea63796
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20261117/af364c95/attachment.htm>


More information about the vc mailing list