strace/test/Makefile
Dr. David Alan Gilbert 025f1082b6 Fix select decoding with bogus (huge or negative) nfds.
We used to allocate and fetch bit arrays using a sanitized
length, but then iterate over them with "j < arg[0]" condition,
where arg[0] is not sanitized. This segfaults if arg[0] is huge
or negative. This change fixes this.

Add test/select.c to capture the case.

Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2013-11-05 11:54:51 +01:00

18 lines
335 B
Makefile

CFLAGS += -Wall
PROGS = \
vfork fork sig skodic clone leaderkill childthread \
sigkill_rain wait_must_be_interruptible threaded_execve \
mtd ubi select sigreturn
all: $(PROGS)
leaderkill: LDFLAGS += -pthread
childthread: LDFLAGS += -pthread
clean distclean:
rm -f *.o core $(PROGS) *.gdb
.PHONY: all clean distclean