]> git.ipfire.org Git - thirdparty/curl.git/commit
libssh: make atime and mtime cap the timestamp instead of wrap
authorDaniel Stenberg <daniel@haxx.se>
Thu, 9 Oct 2025 21:21:37 +0000 (23:21 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 10 Oct 2025 06:26:00 +0000 (08:26 +0200)
commitc049c37acd074a61bbd07eebe25fdf32af575a2a
tree350b62f9a3f45f61868523ce9ab3311ab5916079
parent69efbcaa03b99b927806af43752bcd5d667a676d
libssh: make atime and mtime cap the timestamp instead of wrap

The libssh API uses a 32 bit type for datestamp, so instead of just
force-typecast it, make sure it gets capped at UINT_MAX if the value is
larger.

Reported-by: Joshua Rogers
Closes #18989
lib/vssh/libssh.c