Commit Graph

4501 Commits

Author SHA1 Message Date
Roger A. Light
34ef74e7a4 Fix corrupt persistence restore case 2026-01-06 13:37:12 +00:00
Roger A. Light
d161682199 Fuzzing: Move LPM build to oss-fuzz Dockerfile by default 2025-12-12 13:52:55 +00:00
Roger A. Light
b975babe78 Remove duplicate man page part 2025-12-11 23:46:51 +00:00
Roger A. Light
9772d946e5 Fix protobuf-mutator fuzzing builds 2025-12-11 12:39:30 +00:00
Roger A. Light
fd0fa72703 Allow CIFuzz to be run by workflow dispatch 2025-12-10 00:49:12 +00:00
Roger A. Light
033962912e libcommon property add fuzzer 2025-12-10 00:49:12 +00:00
Roger A. Light
ac02cc2886 libcommon topic matching fuzzer 2025-12-10 00:49:12 +00:00
Roger A. Light
30ee4a2d3e Fix heap use after free in password-file plugin
Unreleased code.

Closes oss-fuzz #462551340.
2025-12-09 13:25:34 +00:00
Roger A. Light
413d84b91d Make condition more explicit for what is actually required
Closes oss-fuzz #445970862
2025-12-09 13:25:34 +00:00
Rich Mattes
ab4ac42b90 Fix libdir location in pkgconfig files.
The pkgconfig files currently hardcode the library directory as
${prefix}/lib, but the library installation directory in config.mk is
set as lib${LIB_SUFFIX}.  This causes a mismatch between the library
installation directory and the pkgconfig file on redhat-based 64-bit
systems.

This commit remedies the issue for both the Makefile and CMake build by
modifying the pkgconfig files to use CMAKE_INSTALL_LIBDIR instead of
"lib".  In the CMake system, this directly reflects the installation
path.  The Makefiles were modified to replace CMAKE_INSTALL_LIBDIR with
lib${LIB_SUFFIX}, matching the libdir definition in config.mk and
following the pattern used in defining the prefix.

Signed-off-by: Rich Mattes <richmattes@gmail.com>
2025-12-08 20:57:17 +00:00
Nicholas Jackson
fdf1943b1b Do not include microhttpd.h if WITH_HTTP_API is disabled
Signed-off-by: Nicholas Jackson <nickajacks1@gmail.com>
2025-12-08 18:40:21 +00:00
Roger A. Light
534d59797e Don't persist v5 clean start=false session-expiry-interval=0 clients
This is for the built-in `persistence true` mode only.

Closes #3418. Thanks to nickajacks1.
2025-12-04 11:48:14 +00:00
Roger A. Light
a45badc57f Add macros to make session expiry values clearer 2025-12-04 11:19:36 +00:00
Roger A. Light
cd307c3d52 Remove redundant test 2025-12-04 11:00:25 +00:00
Roger A. Light
935de54382 Minor refactor 2025-12-02 16:21:15 +00:00
Norbert Heusser
68d933a22f Fixed forwarding of subscription identifier to client message peristence callback
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2025-12-02 16:11:17 +00:00
Roger A. Light
d8aee44746 Make auth delayed test more robust 2025-12-02 12:24:24 +00:00
Roger A. Light
b2aa092267 libcommon base64 unit tests 2025-12-01 00:05:36 +00:00
Roger A. Light
f7852e5be4 read_header is only ever called when all data has been read
This means setting everything back to 0 is the correct approach
2025-11-28 00:49:48 +00:00
Roger A. Light
58c34669a5 Refactor oversize incoming packet check 2025-11-27 12:24:12 +00:00
Roger A. Light
a726ff8846 Send acceptable CAs when require_certificate is true
Closes #3403
2025-11-25 23:42:28 +00:00
Roger A. Light
5792e0fe7e Add broker/client per packet type tests for overlong remaining length 2025-11-24 17:23:23 +00:00
Roger A. Light
49d71f2bd9 Simplify stopping the thread in libmosquitto 2025-11-23 23:11:56 +00:00
Roger A. Light
160ccde1cd password-file: Refactor parsing error handling 2025-11-19 22:14:00 +00:00
Roger A. Light
b555eebdd6 Windows: Make libcommon_vprintf an export 2025-11-19 17:25:48 +00:00
Roger A. Light
378bbb7f98 Speed up some bridge tests 2025-11-19 00:09:00 +00:00
Roger A. Light
27820a58c6 Add upper limit to auto_id_prefix
This prevents uint16_t overflow later
2025-11-01 08:32:43 +00:00
Roger A. Light
445f27b0d6 Unconditionally init/destroy client mutexes
This removes the remote chance that we may init but then not destroy, or
destroy after not initing
2025-11-01 08:19:17 +00:00
Roger A. Light
e3f1438a69 Add missing '/' to special chars check 2025-11-01 08:06:25 +00:00
Roger A. Light
1566b8d3f2 Formatting 2025-10-29 23:06:50 +00:00
Roger A. Light
27aa1e14cb Fix libcommon log printing 2025-10-29 23:06:33 +00:00
Roger A. Light
a3ea371e39 Fix http api allow anon reporting 2025-10-29 22:16:50 +00:00
Roger A. Light
2e669a1c32 mosquitto_read_file: Set return values early 2025-10-29 10:45:04 +00:00
Roger A. Light
6274730810 libcommon: Use mosquitto_fopen in mosquitto_read_file 2025-10-29 10:44:03 +00:00
Roger A. Light
0dfbc7ab36 Fix links 2025-10-28 11:43:05 +00:00
Roger A. Light
12d864d3ea Fix fuzzing corpora generation 2025-10-21 22:52:16 +01:00
Roger A. Light
c641f1d45a Refactor handling of accepted publish messages 2025-10-21 22:52:16 +01:00
Roger A. Light
2c2287f1a5 Remove unused variables. 2025-10-21 22:52:16 +01:00
Roger A. Light
5bf12f0341 Optimise logos 2025-10-21 14:52:01 +01:00
Roger A. Light
916afd6693 mosquitto_ctrl: Handle unavailable endpoint in shell 2025-10-15 17:15:04 +01:00
Roger A. Light
0ba2436589 Remove unused srand() etc. functions 2025-10-15 11:49:13 +01:00
Roger A. Light
a566e1a3ec Increase test delay 2025-10-14 12:23:43 +01:00
Roger A. Light
ed88d3a480 Control topic: Return error when request sent to missing endpoint 2025-10-14 10:43:31 +01:00
Roger A. Light
711f647921 Add ACL support to http-api 2025-10-14 09:22:47 +01:00
Roger A. Light
dd83c8e97a Add authentication to http-api 2025-10-14 09:04:29 +01:00
Roger A. Light
4d296b2f78 Remove magic number 2025-10-13 23:17:22 +01:00
Roger A. Light
1bc14e6aa8 Support parsing future MQTT v5 properties with id value > 128 2025-10-13 22:23:12 +01:00
Roger A. Light
a15020311c Set verify hostname if tls_use_os_certs is true. 2025-10-13 22:02:50 +01:00
Roger A. Light
29b1aed759 Ensure http_dir always end in a directory separator 2025-10-13 21:38:52 +01:00
Roger A. Light
827c803cb8 Updated NOTICE.md 2025-10-11 23:41:44 +01:00