1
0
mirror of https://github.com/libssh2/libssh2.git synced 2026-10-24 03:48:58 +03:00
Files
libssh2/example
Viktor Szakats 3d3c7f6299 src: fix handling snprintf() return values
Prepare for -1 (potentially without null-terminator), and larger than
buffer size values.

Also:
- tackle two cases in example/subsystem_netconf.c.
- cap input size at 4 MiB in `transport_debugdump()`.

Refs:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/fprintf.html
https://pubs.opengroup.org/onlinepubs/9799919799/functions/vfprintf.html

Closes #2337
2026-07-17 13:29:16 +02:00
..
2026-06-21 23:15:10 +02:00
2026-06-21 23:15:10 +02:00
2026-06-21 23:15:10 +02:00