Debian Patches
Status for tlog/14-3
| Patch | Description | Author | Forwarded | Bugs | Origin | Last update |
|---|---|---|---|---|---|---|
| 0001-Add-missing-argument-for-sigchld-handler.patch | Add missing argument for sigchld handler rec.c: In function 'tlog_rec_transfer': rec.c:877:19: error: assignment to '__sighandler_t' {aka 'void (*)(int)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 877 | sa.sa_handler = tlog_rec_sigchld_handler; | ^ rec.c:81:1: note: 'tlog_rec_sigchld_handler' declared here 81 | tlog_rec_sigchld_handler() | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from rec.c:45: /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ make[4]: *** [Makefile:734: rec.lo] Error 1 |
Justin Stephenson <jstephen@redhat.com> | no | 2025-01-23 | ||
| 0002-Use_64bit-time_t-year2038-fix.patch | Year 2038 fix - 64bit time_t conversion On 32-bit architectures, time_t is 32-bit by default (signed), which wraps around on 19 January 2038 at 03:14:07 UTC, causing incorrect timestamps. The tlog code uses struct timespec (with tv_sec of type time_t) throughout for logging session timestamps, so it is affected. This patch applies two layers of fix: - Build level: add -D_TIME_BITS=64 to CFLAGS, making time_t a 64-bit type on all architectures, matching the glibc 2.34+ default. - Code level: update every place that assumed time_t == long to use 64-bit- safe types (intmax_t for formatting, INT64_MAX/MIN for overflow detection and boundary constants). Originally inspired by Heinrich Schuchardt <heinrich.schuchardt@canonical.com> who attempted to fix it. |
Markus Schade <markus.schade@gmail.com> | no | 2026-08-14 | ||
| 0003-hurd-hostname-fix.patch | Fix undefined HOST_NAME_MAX on GNU/Hurd On GNU/Hurd, HOST_NAME_MAX is not defined in <limits.h>, so using it as a VLA/array bound in tlog_rec_get_fqdn() causes a build failure. Query the limit at runtime with sysconf(_SC_HOST_NAME_MAX) and allocate the buffer dynamically, falling back to the POSIX minimum _POSIX_HOST_NAME_MAX. |
Markus Schade <markus.schade@gmail.com> | no | 2026-08-14 | ||
| 0004-uninitialized-vars-fix.patch | Initialize variables that may be used uninitialized The compiler warns that 'pkt_output' in tlog_json_msg_read() and 'mouse_seq_pos' in tlog_play_run() may be used uninitialized. Initialize both to safe default values (false and 0 respectively) to silence the warnings and avoid undefined behavior. |
Markus Schade <markus.schade@gmail.com> | no | 2026-08-14 |
