Package: foremost / 1.5.7-11

Metadata

Package Version Patches format
foremost 1.5.7-11 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 fix config file path.patch | (download)

config.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 look in /etc for config file by default

0002 fix lintian hardening warnings.patch | (download)

extract.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix-lintian-hardening-warnings

Fix a format string in order to add hardening flags.

0003 fix hurd and kfreebsd build.patch | (download)

Makefile | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

 fix-hurd-and-kfreebsd-build

Fixed hurd-i386, kfreebsd-i386 and kfreebsd-amd64 build by adding its
respective rules to Makefile.

0004 fix hurd max path.patch | (download)

Makefile | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

 fix-hurd-max-path

Fix FTBFS of hurd-i386 by defining the missing PATH_MAX macro.

0005 improve makefile.patch | (download)

Makefile | 8 3 + 5 - 0 !
1 file changed, 3 insertions(+), 5 deletions(-)

 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.

0006 enforce limits.patch | (download)

config.c | 15 15 + 0 - 0 !
main.c | 3 2 + 1 - 0 !
main.h | 3 2 + 1 - 0 !
3 files changed, 19 insertions(+), 2 deletions(-)

 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.

0007 zip extra byte.patch | (download)

state.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 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.

0008 harden engine.patch | (download)

Makefile | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 harden engine

Apply CFLAGS, CPPFLAGS and RAW_FLAGS to engine.c.

0009 Fix c undefined behavior.patch | (download)

main.c | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

 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.

Bug-Debian: https://bugs.debian.org/994067