Debian Patches
Status for foremost/1.5.7-12
| Patch | Description | Author | Forwarded | Bugs | Origin | Last update |
|---|---|---|---|---|---|---|
| 0001-fix-config-file-path.patch | Look in /etc for config file by default | Gürkan Sengün <gurkan@phys.ethz.ch> | not-needed | vendor | 2026-07-11 | |
| 0002-fix-lintian-hardening-warnings.patch | fix-lintian-hardening-warnings Fix a format string in order to add hardening flags. |
Raul Benencia <rul@debian.org> | no | 2026-07-11 | ||
| 0003-fix-hurd-and-kfreebsd-build.patch | fix-hurd-and-kfreebsd-build Fixed hurd-i386, kfreebsd-i386 and kfreebsd-amd64 build by adding its respective rules to Makefile. |
Raul Benencia <rul@debian.org> | not-needed | 2026-07-11 | ||
| 0004-fix-hurd-max-path.patch | fix-hurd-max-path Fix FTBFS of hurd-i386 by defining the missing PATH_MAX macro. |
Raul Benencia <rul@debian.org> | not-needed | 2026-07-11 | ||
| 0005-improve-makefile.patch | Improve Foremost's Makefile Foremost's Makefile does not uses the standards flags CFLAGS, LDFLAGS and CPPFLAGS, breaking the compatibility of the flags set by debhelper. This patch modifies the Makefile to make it compile Foremost in a more standard way. |
Raul Benencia <rul@debian.org> | not-needed | 2026-07-11 | ||
| 0006-enforce-limits.patch | Enforce limits Enforce limits on the amount of possible patterns and the length of the config lines in order to avoid segmentation faults and undefined behaviour. |
Raul Benencia <rul@debian.org> | no | 2026-07-11 | ||
| 0007-zip-extra-byte.patch | Fix extra byte on .zip files Fix extra byte at the tail of recovered zip files if -t all is used. Use the same signature than the "zip" mode. |
Maxim Nikulin <m.a.nikulin@gmail.com> | no | 2026-07-11 | ||
| 0008-harden-engine.patch | Harden engine Apply CFLAGS, CPPFLAGS and RAW_FLAGS to engine.c. |
Raul Benencia <rul@debian.org> | not-needed | 2026-07-11 | ||
| 0009-Fix-c-undefined-behavior.patch | Fix -c undefined behavior Running "foremost -T -c something" results in undefined behavior. First, it calls `fopen()` with NULL as pathname. Second, it uses argv[i] with i > argc. |
dk736305@gmail.com | no | debian | 2026-07-11 | |
| 0010-fix-oob-read-on-empty-config-line.patch | Fix out-of-bounds read on empty configuration-file lines process_line() indexes buffer[len - 2] without checking len first. An empty line in the configuration file (for example a blank line in the default /etc/foremost.conf, which is read when foremost is run with no arguments) has len == 1, so buffer[len - 2] reads one byte before the allocated buffer. On most architectures this is a harmless out-of-bounds read, but it aborts on arm64 with Memory Tagging enabled and is flagged by valgrind and AddressSanitizer. Guard the CRLF check with len >= 2. =================================================================== |
Raúl Benencia <rul@debian.org> | no | debian | 2026-07-11 |
