Files
zoneminder/src
Isaac ConnorandClaude Opus 5 d455caa3b0 fix: use snprintf for the auth prefix in the zms auth failure log
strncpy() into a fixed 9-byte buffer trips -Wstringop-truncation at -O2:

  error: 'char* strncpy(char*, const char*, size_t)' output may be
  truncated copying 8 bytes from a string of length 63

The truncation is deliberate (log only the first 8 chars of the auth
hash) and the copy was already safe, since auth_prefix is zero
initialised so the final byte stays NUL. snprintf() expresses the same
intent, always NUL-terminates, and does not warn.

Only reproducible in an optimised build; -O0 Debug trees never see it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-06 21:43:36 -04:00
..
2013-03-17 00:45:21 +01:00
2024-10-26 14:29:40 -04:00
2024-10-26 14:29:40 -04:00
2021-05-30 21:41:58 +02:00
2026-01-29 18:50:42 -05:00
2026-07-21 20:08:12 +03:00
2024-10-29 13:30:29 -04:00
2025-02-26 21:04:32 +11:00
2025-02-26 21:04:32 +11:00
2023-01-18 16:01:42 -05:00
2025-07-05 08:09:09 -04:00
2025-07-05 08:09:09 -04:00
2026-01-05 16:36:36 -05:00
2026-01-05 16:36:36 -05:00