[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:21:03 UTC 2026



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


Commits:
815c66b1 by Matt Selsky at 2026-11-17T03:21:01+00:00
Apply 1 suggestion(s) to 1 file(s)


- - - - -


1 changed file:

- libparse/clk_sel240x.c


Changes:

=====================================
libparse/clk_sel240x.c
=====================================
@@ -119,7 +119,7 @@ cvt_sel240x( unsigned char *buffer,
 	UNUSED_ARG(local);
 
 	if( Strok(buffer, format->fixed_string) ) {
-		struct tm ptime;
+		struct tm ptime = {0};
 		buffer++;
 		buffer = (unsigned char *)strptime(
 			(const char *)buffer, "%Y:%j:%H:%M:%S", &ptime );



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/815c66b1f4f720cd200c42e2e217fb43db3ea763

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/815c66b1f4f720cd200c42e2e217fb43db3ea763
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/23f031aa/attachment-0001.htm>


More information about the vc mailing list