Commit Graph

8 Commits

Author SHA1 Message Date
Mario Fetka
44a309de40 nwserv: escape SAP names in debug logs
All checks were successful
Source release / source-package (push) Successful in 45s
SAP service names are fixed-size 48-byte fields and are not guaranteed to be
safe C strings in diagnostics.  Some NetWare 6.5 SAP service types advertise
non-printable or high-bit bytes in the name field, which made the debug log
hard to read and could run past the intended protocol field if logged with a
plain %s.

Add bounded formatting for SAP names used in debug output.  Stop at NUL within
the fixed field, keep printable ASCII unchanged, and escape other bytes as
\\xNN.

This is logging-only and does not change SAP/RIP protocol behavior.
2026-05-29 21:51:57 +02:00
Mario Fetka
ae20893723 Guard NULL property matches and harden name_match 2026-04-20 23:39:42 +02:00
Mario Fetka
33d1da469a Tighten string helper prototypes and quiet pointer-sign warnings 2026-04-20 23:39:42 +02:00
Mario Fetka
f0bfd5a641 Clean up emutli warnings and libc feature macros 2026-04-20 23:39:42 +02:00
Mario Fetka
849dbf3ead apply patch from https://github.com/davidrg/mars_nwe/issues/1#issuecomment-2259477604 2024-07-31 07:59:25 +02:00
Mario Fetka
1b91c1effe fix syslog 2023-05-31 19:06:51 +02:00
Mario Fetka
35d12ee7aa Update to pld patches and integrate koan patch 2013-11-05 11:54:31 +01:00
Mario Fetka
0fbc9baf41 Restructure for camke build 2011-11-13 17:37:22 +01:00