Debian Patches

Status for dlt-daemon/3.0.0-7

Patch Description Author Forwarded Bugs Origin Last update
788.patch [PATCH 1/2] Fix some build failures due to wrong code in gzip handling:

/dlt-daemon/src/offlinelogstorage/dlt_offline_logstorage_behavior.c:1112:48: error: passing argument 1 of 'fileno' from incompatible pointer type [-Wincompatible-pointer-types]
1112 | if (fsync(fileno(config->gzlog)) != 0) {
| ~~~~~~^~~~~~~
| |
| gzFile {aka struct gzFile_s *}

/dlt-daemon/src/offlinelogstorage/dlt_offline_logstorage.c: In function 'dlt_logstorage_filter_config_free':
/dlt-daemon/src/offlinelogstorage/dlt_offline_logstorage.c:88:21: error: passing argument 1 of 'gzclose' from incompatible pointer type [-Wincompatible-pointer-types]
88 | gzclose(data->gzlog);
| ~~~~^~~~~~~
| |
| struct gzFile_s **
In file included from /dlt-daemon/src/offlinelogstorage/dlt_offline_logstorage.h:57,
from /dlt-daemon/src/offlinelogstorage/dlt_offline_logstorage.c:32:
/usr/include/zlib.h:1634:39: note: expected 'gzFile' {aka 'struct gzFile_s *'} but argument is of type 'struct gzFile_s **'
1634 | ZEXTERN int ZEXPORT gzclose(gzFile file);
| ~~~~~~~^~~~
/usr/include/zlib.h:1305:26: note: 'gzFile' declared here
1305 | typedef struct gzFile_s *gzFile; /* semi-opaque gzip file descriptor */
| ^~~~~~
Gianfranco Costamagna <locutusofborg@debian.org> no 2025-12-24
789.patch [PATCH 1/2] Update CMakeLists.txt: set required std version to gnu++17, needed for new googletest version Gianfranco Costamagna <locutusofborg@debian.org> no 2025-12-24
805.patch Add JSON type validation for parsed JSON Shangzhi-Xu <63028857+ShangzhiXu@users.noreply.github.com> no 2025-12-26
806.patch Fix buffer size issue in filter name generation Shangzhi-Xu <63028857+ShangzhiXu@users.noreply.github.com> no 2025-12-26
807.patch Increase allocated memory for timestamp index Shangzhi-Xu <63028857+ShangzhiXu@users.noreply.github.com> no 2025-12-26
810.patch [PATCH 1/3] Fix pedantic gcc error about double ending ";" Gianfranco Costamagna <locutusofborg@debian.org> no 2026-01-06
820.patch [PATCH 1/3] Fix build with SYSTEMD enabled, and fix another zlib underlink in tests Gianfranco Costamagna <locutusofborg@debian.org> no 2026-02-12
826.patch [PATCH 1/2] Fix compile failure related to gzlog
* In commit [1], gzlog is changed from gzFile to gzFile*, this cause
failure:
/dlt-daemon/src/offlinelogstorage/dlt_offline_logstorage.c:88:21: error: passing argument 1 of ‘gzclose’ from incompatible pointer type [-Werror=incompatible-pointer-types]
88 | gzclose(data->gzlog);
| ~~~~^~~~~~~
| |
| struct gzFile_s **
compilation terminated due to -Wfatal-errors.

so change gzlog back to gzFile, so that all the gzxxx function can work
well.

* Change to gzFile causes the following failure, since fileno need
FILE*, according to code "config->gzlog = gzdopen(config->fd, mode)",
seems we don't need to use fileno, just use config->fd is ok.
/dlt-daemon/src/offlinelogstorage/dlt_offline_logstorage_behavior.c:1133:48: error: passing argument 1 of ‘fileno’ from incompatible pointer type [-Werror=incompatible-pointer-types]
1133 | if (fsync(fileno(config->gzlog)) != 0) {
| ~~~~~~^~~~~~~
| |
| gzFile {aka struct gzFile_s *}
compilation terminated due to -Wfatal-errors.

[1] https://github.com/COVESA/dlt-daemon/commit/543087ba98c103dc576edadeccf614c9dab1b9b3
Changqing Li <changqing.li@windriver.com> no 2026-03-12
827.patch Fix build failures
Fix the following similar build failures, some of the build failure
reproduced with arm64/riscv64, some of the build reproduced with 32bit
x86/arm.

dlt_daemon_common.c:2785:26: error: conversion to 'int8_t' {aka 'signed char'} from 'char' may change the sign of the result [-Werror=sign-conversion]

src/tests/dlt-test-multi-process-client-v2.c:302:49: error: format '%lld' expects argument of type 'long long int', but argument 2 has type 'time_t' {aka 'long int'} [-Werror=format=]
302 | printf(" Time running (seconds) : %lld\n", time(NULL) - stats.first_message_time);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| long long int time_t {aka long int}
| %ld

src/lib/dlt_user.c:5109:60: error: format '%lld' expects argument of type 'long long int', but argument 4 has type '__off_t' {aka 'long int'} [-Werror=format=]
5109 | dlt_vlog(LOG_DEBUG, "%s: Current file size=[%lld]\n", __func__,
| ~~~^
| |
| long long int
| %ld
5110 | st.st_size);
| ~~~~~~~~~~
| |
| __off_t {aka long int}
Changqing Li <changqing.li@windriver.com> no 2026-03-16
830.patch [FIX][REFACTOR] DLTv2 protocol byte-order and memory leaks
Fix big-endian encoding for v2 multi-byte header fields:
- Add DLT_HTOBE_16 for baseheaderv2->len on all write paths
- Add DLT_BETOH_16 for baseheaderv2->len on receive path
- Add DLT_HTOBE_32 for nanoseconds, msid, seid, linr fields
- Fix monotonic timestamp flag from 0x8000 to 0x80000000 (bit 31)
- Uncomment byte-swap in dlt_user_print_msg_v2

Fix memory leaks detected by AddressSanitizer:
- Free tag array in dlt_message_free_v2 and before re-allocation
- Add dlt_message_free_v2 for msgv2 in dlt_daemon_local_cleanup
- Remove unnecessary malloc for DltDaemonApplication pointer
- Free buffer, apid, ctid on all exit paths in register_context
- Free apid2/ctid2 in dlt_daemon_contexts_clear
Luu Quang Minh <lum3hc@gmail.com> no 2026-03-27
850.patch warnings: Fix clang generated warnings
This patch ensures that it can compile with clang-22
Khem Raj <khem.raj@oss.qualcomm.com> no 2026-04-10
852.patch dlt-daemon.c: fix wrong len
Set len to 0 makes the application description always empty.
One of the failure case:
running "dlt-example-user 'test'",
check "dlt-control -j localhost" will not get application description:
APID:LOG-

Expected:
APID:LOG- Test Application for Logging
Changqing Li <changqing.li@windriver.com> no 2026-04-15
856.patch Fix 32-bit time_t compile errors in DLTv2 timestamp code
On platforms where time_t is 32-bit (e.g. armv7/musl, glibc arm with
default _FILE_OFFSET_BITS), several DLTv2 timestamp call sites trigger
-Werror=shift-count-overflow, -Werror=sign-conversion, or
-Werror=sign-compare, preventing compilation.

Fixes:

- ts.tv_sec >> 32 (9 sites in dlt-daemon.c, dlt_daemon_client.c,
dlt_client.c, dlt_user.c, dlt_common.c): cast to uint64_t before
shifting. On 32-bit time_t the shift is UB; on 64-bit it is a no-op.
The top byte of the 40-bit seconds field is now correctly zero on
32-bit platforms instead of carrying a stray duplicate of the low
byte (caused by ARM's 5-bit shift-count mask).

- time_t tt = msg->storageheader->seconds (dlt_common.c:1084):
explicit (time_t) cast to silence sign-conversion when time_t is
signed 32-bit.

- st.st_size > UINT_MAX (dlt_user.c:5620): cast st.st_size to
uintmax_t for the comparison, avoiding the signed/unsigned mismatch
between off_t and unsigned int.
john crosbie <john@excelfore.com> no 2026-04-21
859.patch Fix FTBFS with gcc-16 and unused variables
https://bugs.debian.org/1133458

(Closes: #1133458)
Gianfranco Costamagna <locutusofborg@debian.org> no 2026-04-29

All known versions for source package 'dlt-daemon'

Links