Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libacars2 for openSUSE:Factory checked in at 2026-11-23 12:26:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libacars2 (Old) and /work/SRC/openSUSE:Factory/.libacars2.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libacars2" Mon Nov 23 12:26:00 2026 rev:11 rq:1399788 version:2.2.2 Changes: -------- --- /work/SRC/openSUSE:Factory/libacars2/libacars2.changes 2025-11-09 21:09:10.330333054 +0100 +++ /work/SRC/openSUSE:Factory/.libacars2.new.1340718/libacars2.changes 2026-11-23 12:30:51.099514858 +0100 @@ -1,0 +2,13 @@ +Sun Nov 22 14:17:36 UTC 2026 - Martin Hauke <[email protected]> + +- Update to version 2.2.2 + * Message reassembly status is now exposed in the JSON output. + * Fixed three memory safety issues. + + out-of-bounds read in BASE64 decoder. + + memory leak when decoding too short MIAM PDUs. + + signed integer overflow in MIAM CORE CRC reconstruction. + * Mention the non-printable characters in text output caveat in + the programming guide. + * A few minor bugfixes and improvements. + +------------------------------------------------------------------- Old: ---- libacars-2.2.1.tar.gz New: ---- libacars-2.2.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libacars2.spec ++++++ --- /var/tmp/diff_new_pack.f9xUt2/_old 2026-11-23 12:30:52.812586974 +0100 +++ /var/tmp/diff_new_pack.f9xUt2/_new 2026-11-23 12:30:52.819587269 +0100 @@ -1,8 +1,8 @@ # # spec file for package libacars2 # -# Copyright (c) 2025 SUSE LLC and contributors -# Copyright (c) 2019-2025, Martin Hauke <[email protected]> +# Copyright (c) 2026 SUSE LLC and contributors +# Copyright (c) 2019-2026, Martin Hauke <[email protected]> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,7 +20,7 @@ %define sover 2 %define libname libacars-2-%{sover} Name: libacars2 -Version: 2.2.1 +Version: 2.2.2 Release: 0 Summary: A library for decoding various ACARS message payloads License: MIT ++++++ libacars-2.2.1.tar.gz -> libacars-2.2.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/.github/workflows/build.yml new/libacars-2.2.2/.github/workflows/build.yml --- old/libacars-2.2.1/.github/workflows/build.yml 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/.github/workflows/build.yml 2026-11-22 10:58:51.000000000 +0100 @@ -10,7 +10,7 @@ build: strategy: matrix: - os: [ ubuntu-24.04, ubuntu-22.04, macos-15, macos-14 ] + os: [ ubuntu-24.04, ubuntu-26.04, macos-15, macos-26 ] runs-on: ${{ matrix.os }} env: HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/.gitignore new/libacars-2.2.2/.gitignore --- old/libacars-2.2.1/.gitignore 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/.gitignore 2026-11-22 10:58:51.000000000 +0100 @@ -8,3 +8,4 @@ compile_commands.json .clangd .cache +obj-x86_64-linux-gnu diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/CHANGELOG.md new/libacars-2.2.2/CHANGELOG.md --- old/libacars-2.2.1/CHANGELOG.md 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/CHANGELOG.md 2026-11-22 10:58:51.000000000 +0100 @@ -1,5 +1,16 @@ # ChangeLog +## Version 2.2.2 (2026-11-22) +* Message reassembly status is now exposed in the JSON output (thx @Trumeet) +* Added Debian packaging (thx @ka9q) +* Fixed three memory safety issues (thx @alosafuzz): + * out-of-bounds read in BASE64 decoder + * memory leak when decoding too short MIAM PDUs + * signed integer overflow in MIAM CORE CRC reconstruction +* Mention the non-printable characters in text output caveat in the + programming guide (suggested by @f00b4r0) +* A few minor bugfixes and improvements + ## Version 2.2.1 (2025-11-02) * Fix compatibility with latest CMake versions * Fix compilation error on Windows (thx @gvanem) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/CMakeLists.txt new/libacars-2.2.2/CMakeLists.txt --- old/libacars-2.2.1/CMakeLists.txt 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/CMakeLists.txt 2026-11-22 10:58:51.000000000 +0100 @@ -3,7 +3,7 @@ set (LA_VERSION_MAJOR 2) set (LA_VERSION_MINOR 2) -set (LA_VERSION_PATCH 1) +set (LA_VERSION_PATCH 2) set (LA_VERSION "${LA_VERSION_MAJOR}.${LA_VERSION_MINOR}.${LA_VERSION_PATCH}") set (LA_SUBDIR "${PROJECT_NAME}-${LA_VERSION_MAJOR}") @@ -30,7 +30,7 @@ endif() if(MINGW) - add_definitions(-D__USE_MINGW_ANSI_STDIO=1) + add_compile_definitions(-D__USE_MINGW_ANSI_STDIO=1) endif() include_directories ( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/README.md new/libacars-2.2.2/README.md --- old/libacars-2.2.1/README.md 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/README.md 2026-11-22 10:58:51.000000000 +0100 @@ -2,7 +2,7 @@ libacars is a library for decoding ACARS message contents. -Current stable version: **2.2.1** (released November 2, 2025) +Current stable version: **2.2.2** (released November 22, 2026) ## Supported message types @@ -27,7 +27,7 @@ Requirements: - c11-capable C compiler -- cmake 3.1 or later +- cmake 3.12 or later - zlib 1.2 (optional) - libxml2 (optional) @@ -189,7 +189,7 @@ ## Licenses -libacars, Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> +libacars, Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/debian/.gitignore new/libacars-2.2.2/debian/.gitignore --- old/libacars-2.2.1/debian/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/libacars-2.2.2/debian/.gitignore 2026-11-22 10:58:51.000000000 +0100 @@ -0,0 +1,9 @@ +*~undo-tree~ +*.substvars +.debhelper +debhelper-build-stamp +files +tmp +libacars2-tools +libacars2 +libacars2-dev diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/debian/changelog new/libacars-2.2.2/debian/changelog --- old/libacars-2.2.1/debian/changelog 1970-01-01 01:00:00.000000000 +0100 +++ new/libacars-2.2.2/debian/changelog 2026-11-22 10:58:51.000000000 +0100 @@ -0,0 +1,5 @@ +libacars (2.2.1-1) UNRELEASED; urgency=medium + + * Initial release. (Closes: #nnnn) <nnnn is the bug number of your ITP> + + -- Phil Karn <[email protected]> Sun, 10 May 2026 00:14:14 -0700 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/debian/control new/libacars-2.2.2/debian/control --- old/libacars-2.2.1/debian/control 1970-01-01 01:00:00.000000000 +0100 +++ new/libacars-2.2.2/debian/control 2026-11-22 10:58:51.000000000 +0100 @@ -0,0 +1,36 @@ +Source: libacars +Section: libs +Priority: optional +Maintainer: Phil Karn <[email protected]> +Rules-Requires-Root: no +Build-Depends: + debhelper-compat (= 13), + cmake, zlib1g-dev, libxml2-dev, libjansson-dev +Standards-Version: 4.7.2 +Homepage: <insert the upstream URL, if relevant> +#Vcs-Browser: https://salsa.debian.org/debian/libacars +Vcs-Git: https://github.com/szpajder/libacars.git + +Package: libacars2-dev +Section: libdevel +Architecture: any +Multi-Arch: same +Depends: + libacars2 (= ${binary:Version}), + ${misc:Depends} +Description: <insert up to 60 chars description> + <Insert long description, indented with spaces.> + +Package: libacars2 +Architecture: any +Multi-Arch: same +Depends: ${shlibs:Depends}, ${misc:Depends}, +Description: Library for decoding ACARS messages + Fork of github.com/szpajder/libacars.git + +Package: libacars2-tools +Architecture: any +Multi-Arch: same +Depends: ${shlibs:Depends}, ${misc:Depends}, +Description: Library for decoding ACARS messages + Fork of user tools from github.com/szpajder/libacars.git diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/debian/libacars2-dev.install new/libacars-2.2.2/debian/libacars2-dev.install --- old/libacars-2.2.1/debian/libacars2-dev.install 1970-01-01 01:00:00.000000000 +0100 +++ new/libacars-2.2.2/debian/libacars2-dev.install 2026-11-22 10:58:51.000000000 +0100 @@ -0,0 +1,6 @@ +usr/include/* +usr/lib/*/lib*.so +usr/lib/*/pkgconfig/* +usr/include/libacars-2/libacars/* +usr/share/doc/libacars-2/* + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/debian/libacars2-tools.install new/libacars-2.2.2/debian/libacars2-tools.install --- old/libacars-2.2.1/debian/libacars2-tools.install 1970-01-01 01:00:00.000000000 +0100 +++ new/libacars-2.2.2/debian/libacars2-tools.install 2026-11-22 10:58:51.000000000 +0100 @@ -0,0 +1 @@ +usr/bin/* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/debian/libacars2.install new/libacars-2.2.2/debian/libacars2.install --- old/libacars-2.2.1/debian/libacars2.install 1970-01-01 01:00:00.000000000 +0100 +++ new/libacars-2.2.2/debian/libacars2.install 2026-11-22 10:58:51.000000000 +0100 @@ -0,0 +1 @@ +usr/lib/*/lib*.so.* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/debian/rules new/libacars-2.2.2/debian/rules --- old/libacars-2.2.1/debian/rules 1970-01-01 01:00:00.000000000 +0100 +++ new/libacars-2.2.2/debian/rules 2026-11-22 10:58:51.000000000 +0100 @@ -0,0 +1,26 @@ +#!/usr/bin/make -f + +# See debhelper(7) (uncomment to enable). +# Output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + + +# See FEATURE AREAS in dpkg-buildflags(1). +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# See ENVIRONMENT in dpkg-buildflags(1). +# Package maintainers to append CFLAGS. +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# Package maintainers to append LDFLAGS. +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + + +%: + dh $@ + + +# dh_make generated override targets. +# This is an example for Cmake (see <https://bugs.debian.org/641051>). +#override_dh_auto_configure: +# dh_auto_configure -- \ +# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/doc/API_REFERENCE.md new/libacars-2.2.2/doc/API_REFERENCE.md --- old/libacars-2.2.1/doc/API_REFERENCE.md 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/doc/API_REFERENCE.md 2026-11-22 10:58:51.000000000 +0100 @@ -2,7 +2,7 @@ API version: 2.0 -Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> +Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> ## Basic data types @@ -183,10 +183,13 @@ - `crc_ok` - `true` if ACARS CRC verification succeeded, `false` otherwise. - `err` - `true` if the decoder failed to decode the message. Values of other fields are left uninitialized. -- `final_block` - `true` if the message text is terminated with ETX character - (meaning it's the final block of a multiblock ACARS message), `false` if +- `more` - `false` if the message text is terminated with ETX character + (meaning it's the final block of a multiblock ACARS message), `true` if it has been terminated with ETB character (meaning there are more blocks left in this message) +- `reassembly` - multi-block message reassembly status. One of: `unknown`, + `complete`, `in progress`, `skipped`, `duplicate`, `out of sequence`, + `invalid args`. - `mode` - mode character - `reg` - aircraft registration number (NULL-terminated) - `ack` - acknowledgement character diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/doc/PROG_GUIDE.md new/libacars-2.2.2/doc/PROG_GUIDE.md --- old/libacars-2.2.1/doc/PROG_GUIDE.md 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/doc/PROG_GUIDE.md 2026-11-22 10:58:51.000000000 +0100 @@ -1,5 +1,5 @@ # libacars-2 Programmer's Guide -Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> +Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> ## Introduction @@ -519,6 +519,21 @@ Piece of cake. +### A word on non-printable characters in text data + +While ACARS messages are textual in principle, nothing prevents the sender from +using non-printable characters in them. Most common example is the bell +character (ASCII code 7) used to ring the chime sound in the cockpit to alert +the crew. Certain avionics are also known to include a terminating NULL +character in CPDLC free text messages by mistake (see +[libacars issue 20](https://github.com/szpajder/libacars/issues/20)). libacars text formatting +functions do not escape these characters in any way, everything is printed as +is. It is usually not an issue for humans, but might be a problem for machine +parsing. It is therefore recommended to use JSON output for automatic data +processing. JSON data is guaranteed to be properly formatted and all +non-printable characters are correctly escaped (for example the NULL character +is represented by `\u0000`). + ### Accessing message fields Having only an option to pretty-print decoded messages would be quite a diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/examples/adsc_get_position.c new/libacars-2.2.2/examples/adsc_get_position.c --- old/libacars-2.2.1/examples/adsc_get_position.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/examples/adsc_get_position.c 2026-11-22 10:58:51.000000000 +0100 @@ -2,7 +2,7 @@ * adsc_get_position - an example program showing how to extract * aircraft position information from downlink ADS-C messages. * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include <stdbool.h> #include <stdio.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/examples/cpdlc_get_position.c new/libacars-2.2.2/examples/cpdlc_get_position.c --- old/libacars-2.2.1/examples/cpdlc_get_position.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/examples/cpdlc_get_position.c 2026-11-22 10:58:51.000000000 +0100 @@ -3,7 +3,7 @@ * aircraft position information from downlink CPDLC message with * a position report. * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include <stdbool.h> #include <stdio.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/examples/decode_acars_apps.c new/libacars-2.2.2/examples/decode_acars_apps.c --- old/libacars-2.2.1/examples/decode_acars_apps.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/examples/decode_acars_apps.c 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * decode_acars_apps - an example decoder for ACARS applications * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include <stdbool.h> /* true */ #include <stdio.h> /* printf(), fprintf(), fgets() */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/CMakeLists.txt new/libacars-2.2.2/libacars/CMakeLists.txt --- old/libacars-2.2.1/libacars/CMakeLists.txt 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/CMakeLists.txt 2026-11-22 10:58:51.000000000 +0100 @@ -28,18 +28,18 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS 1) # strdup, strtok_r -add_definitions(-D_XOPEN_SOURCE=600) +add_compile_definitions(-D_XOPEN_SOURCE=600) # strnlen -add_definitions(-D_POSIX_C_SOURCE=200809L) +add_compile_definitions(-D_POSIX_C_SOURCE=200809L) # strsep # Also silence warnings about obsolete _BSD_SOURCE macro in ASN.1 code -add_definitions(-D_DEFAULT_SOURCE) +add_compile_definitions(-D_DEFAULT_SOURCE) # strsep on MacOS if(APPLE) - add_definitions(-D_DARWIN_C_SOURCE) + add_compile_definitions(-D_DARWIN_C_SOURCE) endif() if (HAVE_LD_VERSION_SCRIPT) @@ -49,14 +49,15 @@ CHECK_C_COMPILER_FLAG(-fno-common CC_HAS_FNO_COMMON) if(CC_HAS_FNO_COMMON) - add_definitions(-fno-common) + add_compile_options(-fno-common) endif() TEST_BIG_ENDIAN(IS_BIG_ENDIAN) -set(CMAKE_REQUIRED_FLAGS_SAVE ${CMAKE_REQUIRED_FLAGS}) +set(CMAKE_REQUIRED_DEFINITIONS_SAVE ${CMAKE_REQUIRED_DEFINITIONS}) +set(CMAKE_REQUIRED_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS} "-D_DEFAULT_SOURCE") CHECK_SYMBOL_EXISTS(strsep string.h HAVE_STRSEP) -set(CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS_SAVE}) +set(CMAKE_REQUIRED_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS_SAVE}) set(CMAKE_REQUIRED_DEFINITIONS_SAVE ${CMAKE_REQUIRED_DEFINITIONS}) set(CMAKE_REQUIRED_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS} "-D_GNU_SOURCE") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/acars.c new/libacars-2.2.2/libacars/acars.c --- old/libacars-2.2.1/libacars/acars.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/acars.c 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include <string.h> // memcpy(), strdup() @@ -10,7 +10,7 @@ #include <sys/time.h> // struct timeval #endif #ifdef WITH_LIBXML2 -#include <libxml/tree.h> // xmlBufferPtr, xmlBufferFree() +#include <libxml/tree.h> // xmlChar, xmlFree() #endif #include <libacars/libacars.h> // la_proto_node, la_proto_tree_find_protocol #include <libacars/macros.h> // la_assert, la_debug_print @@ -530,11 +530,11 @@ #ifdef WITH_LIBXML2 (void)la_config_get_bool("prettify_xml", &prettify_xml); if(prettify_xml == true) { - xmlBufferPtr xmlbufptr = NULL; - if((xmlbufptr = la_prettify_xml(msg->txt)) != NULL) { + xmlChar *xml = NULL; + if((xml = la_prettify_xml(msg->txt)) != NULL) { LA_ISPRINTF(vstr, indent, "Message (reformatted):\n"); - la_isprintf_multiline_text(vstr, indent + 1, (char *)xmlbufptr->content); - xmlBufferFree(xmlbufptr); + la_isprintf_multiline_text(vstr, indent + 1, (char *)xml); + xmlFree(xml); } else { // Doesn't look like XML - print it as normal prettify_xml = false; @@ -559,6 +559,7 @@ } la_json_append_bool(vstr, "crc_ok", msg->crc_ok); la_json_append_bool(vstr, "more", !msg->final_block); + la_json_append_string(vstr, "reassembly", la_reasm_status_name_get(msg->reasm_status)); la_json_append_string(vstr, "reg", msg->reg); la_json_append_char(vstr, "mode", msg->mode); la_json_append_string(vstr, "label", msg->label); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/acars.h new/libacars-2.2.2/libacars/acars.h --- old/libacars-2.2.1/libacars/acars.h 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/acars.h 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #ifndef LA_ACARS_H diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/adsc.c new/libacars-2.2.2/libacars/adsc.c --- old/libacars-2.2.1/libacars/adsc.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/adsc.c 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include <stdint.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/adsc.h new/libacars-2.2.2/libacars/adsc.h --- old/libacars-2.2.1/libacars/adsc.h 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/adsc.h 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #ifndef LA_ADSC_H diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/arinc.c new/libacars-2.2.2/libacars/arinc.c --- old/libacars-2.2.1/libacars/arinc.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/arinc.c 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include <stdbool.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/arinc.h new/libacars-2.2.2/libacars/arinc.h --- old/libacars-2.2.1/libacars/arinc.h 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/arinc.h 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #ifndef LA_ARINC_H diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/asn1-format-common.c new/libacars-2.2.2/libacars/asn1-format-common.c --- old/libacars-2.2.1/libacars/asn1-format-common.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/asn1-format-common.c 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include <libacars/asn1/asn_application.h> // asn_TYPE_descriptor_t, asn_sprintf diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/asn1-format-common.h new/libacars-2.2.2/libacars/asn1-format-common.h --- old/libacars-2.2.1/libacars/asn1-format-common.h 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/asn1-format-common.h 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #ifndef LA_ASN1_FORMAT_COMMON_H diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/asn1-format-cpdlc-json.c new/libacars-2.2.2/libacars/asn1-format-cpdlc-json.c --- old/libacars-2.2.1/libacars/asn1-format-cpdlc-json.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/asn1-format-cpdlc-json.c 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include <libacars/asn1/FANSATCDownlinkMessage.h> /* FANSATCDownlinkMessage_t and dependencies */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/asn1-format-cpdlc-text.c new/libacars-2.2.2/libacars/asn1-format-cpdlc-text.c --- old/libacars-2.2.1/libacars/asn1-format-cpdlc-text.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/asn1-format-cpdlc-text.c 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include <libacars/asn1/FANSATCDownlinkMessage.h> // FANSATCDownlinkMessage_t and dependencies diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/asn1-format-cpdlc.h new/libacars-2.2.2/libacars/asn1-format-cpdlc.h --- old/libacars-2.2.1/libacars/asn1-format-cpdlc.h 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/asn1-format-cpdlc.h 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #ifndef LA_ASN1_FORMAT_CPDLC_H diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/asn1-util.c new/libacars-2.2.2/libacars/asn1-util.c --- old/libacars-2.2.1/libacars/asn1-util.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/asn1-util.c 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include <stdint.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/asn1-util.h new/libacars-2.2.2/libacars/asn1-util.h --- old/libacars-2.2.1/libacars/asn1-util.h 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/asn1-util.h 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #ifndef LA_ASN1_UTIL_H diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/bitstream.c new/libacars-2.2.2/libacars/bitstream.c --- old/libacars-2.2.1/libacars/bitstream.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/bitstream.c 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include <stdint.h> #include <libacars/util.h> // LA_XCALLOC, LA_XFREE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/bitstream.h new/libacars-2.2.2/libacars/bitstream.h --- old/libacars-2.2.1/libacars/bitstream.h 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/bitstream.h 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #ifndef _LA_BITSTREAM_H diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/config.h.in new/libacars-2.2.2/libacars/config.h.in --- old/libacars-2.2.1/libacars/config.h.in 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/config.h.in 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #ifndef _CONFIG_H #define _CONFIG_H diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/config_defaults.h new/libacars-2.2.2/libacars/config_defaults.h --- old/libacars-2.2.1/libacars/config_defaults.h 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/config_defaults.h 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ /* Default libacars configuration settings */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/configuration.c new/libacars-2.2.2/libacars/configuration.c --- old/libacars-2.2.1/libacars/configuration.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/configuration.c 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include <stdbool.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/cpdlc.c new/libacars-2.2.2/libacars/cpdlc.c --- old/libacars-2.2.1/libacars/cpdlc.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/cpdlc.c 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include <stdio.h> #include <stdbool.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/cpdlc.h new/libacars-2.2.2/libacars/cpdlc.h --- old/libacars-2.2.1/libacars/cpdlc.h 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/cpdlc.h 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #ifndef LA_CPDLC_H diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/crc.c new/libacars-2.2.2/libacars/crc.c --- old/libacars-2.2.1/libacars/crc.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/crc.c 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include <stdio.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/crc.h new/libacars-2.2.2/libacars/crc.h --- old/libacars-2.2.1/libacars/crc.h 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/crc.h 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #ifndef LA_CRC_ARINC_H diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/dict.c new/libacars-2.2.2/libacars/dict.c --- old/libacars-2.2.1/libacars/dict.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/dict.c 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include <stddef.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/dict.h new/libacars-2.2.2/libacars/dict.h --- old/libacars-2.2.1/libacars/dict.h 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/dict.h 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #ifndef LA_DICT_H #define LA_DICT_H 1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/hash.c new/libacars-2.2.2/libacars/hash.c --- old/libacars-2.2.1/libacars/hash.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/hash.c 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include <stdbool.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/hash.h new/libacars-2.2.2/libacars/hash.h --- old/libacars-2.2.1/libacars/hash.h 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/hash.h 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #ifndef LA_HASH_H #define LA_HASH_H 1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/json.c new/libacars-2.2.2/libacars/json.c --- old/libacars-2.2.1/libacars/json.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/json.c 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include <inttypes.h> // PRI* macros diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/json.h new/libacars-2.2.2/libacars/json.h --- old/libacars-2.2.1/libacars/json.h 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/json.h 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #ifndef LA_JSON_H diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/libacars.c new/libacars-2.2.2/libacars/libacars.c --- old/libacars-2.2.1/libacars/libacars.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/libacars.c 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include <stdbool.h> #ifdef DEBUG diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/libacars.h new/libacars-2.2.2/libacars/libacars.h --- old/libacars-2.2.1/libacars/libacars.h 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/libacars.h 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #ifndef LA_LIBACARS_H diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/list.c new/libacars-2.2.2/libacars/list.c --- old/libacars-2.2.1/libacars/list.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/list.c 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include <libacars/macros.h> // la_assert diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/list.h new/libacars-2.2.2/libacars/list.h --- old/libacars-2.2.1/libacars/list.h 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/list.h 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #ifndef LA_LIST_H #define LA_LIST_H 1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/macros.h new/libacars-2.2.2/libacars/macros.h --- old/libacars-2.2.1/libacars/macros.h 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/macros.h 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #ifndef LA_MACROS_H diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/media-adv.c new/libacars-2.2.2/libacars/media-adv.c --- old/libacars-2.2.1/libacars/media-adv.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/media-adv.c 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include <stdbool.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/media-adv.h new/libacars-2.2.2/libacars/media-adv.h --- old/libacars-2.2.1/libacars/media-adv.h 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/media-adv.h 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #ifndef LA_MEDIA_ADV_H diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/miam-core.c new/libacars-2.2.2/libacars/miam-core.c --- old/libacars-2.2.1/libacars/miam-core.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/miam-core.c 2026-11-22 10:58:51.000000000 +0100 @@ -1,6 +1,6 @@ /* This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include <stdint.h> @@ -9,7 +9,7 @@ #include <string.h> // strchr(), strdup(), strtok_r(), strlen #include "config.h" #ifdef WITH_LIBXML2 -#include <libxml/tree.h> // xmlBufferPtr, xmlBufferFree() +#include <libxml/tree.h> // xmlChar, xmlFree() #endif #include <libacars/macros.h> // la_assert(), LA_UNLIKELY() #include <libacars/libacars.h> // la_proto_node @@ -219,6 +219,7 @@ // Assume the initial part is the Header - try to decode it la_base85_decode_result header = la_base85_decode(txt, delim); if(header.buf == NULL || header.len < hpad) { // BASE85 decoder failed or result too short + LA_XFREE(header.buf); return NULL; } la_debug_print_buf_hex(D_VERBOSE, header.buf, header.len, "Decoded header:\n"); @@ -576,7 +577,8 @@ la_debug_print(D_INFO, "app_id: '%s'\n", pdu->app_id); hdrbuf += app_id_len; hdrlen -= app_id_len; - pdu->crc = (hdrbuf[0] << 24) | (hdrbuf[1] << 16) | (hdrbuf[2] << 8) | hdrbuf[3]; + pdu->crc = ((uint32_t)hdrbuf[0] << 24) | ((uint32_t)hdrbuf[1] << 16) | + ((uint32_t)hdrbuf[2] << 8) | (uint32_t)hdrbuf[3]; hdrbuf += LA_MIAM_CORE_V1_CRC_LEN; hdrlen -= LA_MIAM_CORE_V1_CRC_LEN; if(hdrlen > 0) { la_debug_print(D_ERROR, "Warning: %u bytes left after MIAM header\n", hdrlen); @@ -743,11 +745,11 @@ #ifdef WITH_LIBXML2 (void)la_config_get_bool("prettify_xml", &prettify_xml); if(prettify_xml == true) { - xmlBufferPtr xmlbufptr = NULL; - if((xmlbufptr = la_prettify_xml((char *)pdu->data)) != NULL) { + xmlChar *xml = NULL; + if((xml = la_prettify_xml((char *)pdu->data)) != NULL) { LA_ISPRINTF(vstr, indent, "Message (reformatted):\n"); - la_isprintf_multiline_text(vstr, indent + 1, (char *)xmlbufptr->content); - xmlBufferFree(xmlbufptr); + la_isprintf_multiline_text(vstr, indent + 1, (char *)xml); + xmlFree(xml); } else { // Doesn't look like XML - print it as normal prettify_xml = false; @@ -1144,11 +1146,11 @@ #ifdef WITH_LIBXML2 (void)la_config_get_bool("prettify_xml", &prettify_xml); if(prettify_xml == true) { - xmlBufferPtr xmlbufptr = NULL; - if((xmlbufptr = la_prettify_xml((char *)pdu->data)) != NULL) { + xmlChar *xml = NULL; + if((xml = la_prettify_xml((char *)pdu->data)) != NULL) { LA_ISPRINTF(vstr, indent, "Message (reformatted):\n"); - la_isprintf_multiline_text(vstr, indent + 1, (char *)xmlbufptr->content); - xmlBufferFree(xmlbufptr); + la_isprintf_multiline_text(vstr, indent + 1, (char *)xml); + xmlFree(xml); } else { // Doesn't look like XML - print it as normal prettify_xml = false; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/miam-core.h new/libacars-2.2.2/libacars/miam-core.h --- old/libacars-2.2.1/libacars/miam-core.h 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/miam-core.h 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #ifndef LA_MIAM_CORE_H diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/miam.c new/libacars-2.2.2/libacars/miam.c --- old/libacars-2.2.1/libacars/miam.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/miam.c 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include "config.h" /* HAVE_SYS_TIME_H */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/miam.h new/libacars-2.2.2/libacars/miam.h --- old/libacars-2.2.1/libacars/miam.h 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/miam.h 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #ifndef LA_MIAM_H diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/ohma.c new/libacars-2.2.2/libacars/ohma.c --- old/libacars-2.2.1/libacars/ohma.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/ohma.c 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include "config.h" // WITH_ZLIB, WITH_JANSSON diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/ohma.h new/libacars-2.2.2/libacars/ohma.h --- old/libacars-2.2.1/libacars/ohma.h 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/ohma.h 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #ifndef LA_OHMA_H diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/reassembly.c new/libacars-2.2.2/libacars/reassembly.c --- old/libacars-2.2.1/libacars/reassembly.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/reassembly.c 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include "config.h" // HAVE_SYS_TIME_H diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/reassembly.h new/libacars-2.2.2/libacars/reassembly.h --- old/libacars-2.2.1/libacars/reassembly.h 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/reassembly.h 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #ifndef LA_REASSEMBLY_H #define LA_REASSEMBLY_H 1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/util.c new/libacars-2.2.2/libacars/util.c --- old/libacars-2.2.1/libacars/util.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/util.c 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include <stdio.h> // fprintf #include <stdint.h> @@ -18,7 +18,6 @@ #ifdef WITH_LIBXML2 #include <libxml/parser.h> // xmlParseDoc #include <libxml/tree.h> // xmlBuffer.*, xmlNodeDump, xmlDocGetRootElement, xmlFreeDoc -#include <libxml/xmlerror.h> // initGenericErrorDefaultFunc, xmlGenericError #endif #ifdef WITH_ZLIB #include <zlib.h> // z_stream, inflateInit2(), inflate(), inflateEnd() @@ -263,30 +262,34 @@ #endif #ifdef WITH_LIBXML2 -void la_xml_errfunc_noop(void * ctx, char const *msg, ...) { - (void)ctx; - (void)msg; -} - -xmlBufferPtr la_prettify_xml(char const *buf) { +xmlChar *la_prettify_xml(char const *buf) { if(buf == NULL) { return NULL; } - // Disables printing XML parser errors to stderr by setting error handler to noop. - // Can't do this once in library constructor, because this is a per-thread setting. - if(xmlGenericError != la_xml_errfunc_noop) { - xmlGenericErrorFunc errfuncptr = la_xml_errfunc_noop; - initGenericErrorDefaultFunc(&errfuncptr); + + size_t len = strlen(buf); + if(len > INT_MAX) { + return NULL; } - xmlDocPtr doc = xmlParseDoc((uint8_t const *)buf); + + xmlDocPtr doc = xmlReadMemory(buf, (int)len, NULL, NULL, + XML_PARSE_NOERROR | XML_PARSE_NOWARNING | XML_PARSE_NONET + ); if(doc == NULL) { return NULL; } xmlBufferPtr outbufptr = xmlBufferCreate(); + if(outbufptr == NULL) { + xmlFreeDoc(doc); + return NULL; + } int result_len = xmlNodeDump(outbufptr, doc, xmlDocGetRootElement(doc), 0, 1); xmlFreeDoc(doc); + if(result_len > 0) { - return outbufptr; + xmlChar *result = xmlBufferDetach(outbufptr); + xmlBufferFree(outbufptr); + return result; } xmlBufferFree(outbufptr); return NULL; @@ -329,6 +332,9 @@ if((input_len & 3) != 0) { input_len &= ~3; } + if(input_len == 0) { // block rounding above can zero a length of 1..3 + return NULL; + } size_t decoded_len = (input_len * 3) / 4; if (input[input_len - 1] == '=') { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/util.h new/libacars-2.2.2/libacars/util.h --- old/libacars-2.2.1/libacars/util.h 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/util.h 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #ifndef LA_UTIL_H #define LA_UTIL_H 1 @@ -50,7 +50,7 @@ la_octet_string *la_octet_string_new(void *buf, size_t len); void la_octet_string_destroy(void *ostring_ptr); #ifdef WITH_LIBXML2 -xmlBufferPtr la_prettify_xml(char const *buf); +xmlChar *la_prettify_xml(char const *buf); #endif uint32_t la_reverse(uint32_t v, int numbits); la_octet_string *la_base64_decode(char const *input, size_t input_len); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/version.h new/libacars-2.2.2/libacars/version.h --- old/libacars-2.2.1/libacars/version.h 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/version.h 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #ifndef LA_VERSION_H diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/vstring.c new/libacars-2.2.2/libacars/vstring.c --- old/libacars-2.2.1/libacars/vstring.c 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/vstring.c 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #include <limits.h> // INT_MAX diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libacars-2.2.1/libacars/vstring.h new/libacars-2.2.2/libacars/vstring.h --- old/libacars-2.2.1/libacars/vstring.h 2025-11-02 11:22:42.000000000 +0100 +++ new/libacars-2.2.2/libacars/vstring.h 2026-11-22 10:58:51.000000000 +0100 @@ -1,7 +1,7 @@ /* * This file is a part of libacars * - * Copyright (c) 2018-2023 Tomasz Lemiech <[email protected]> + * Copyright (c) 2018-2026 Tomasz Lemiech <[email protected]> */ #ifndef LA_VSTRING_H
