getpwnam_error.c:
* The memory hole can be fixed with two different approaches
1) Change /etc/nsswitch.conf: passwd: compat to passwd: files
2) LD_PRELOAD=/lib/libnss_compat.so.2 valgrind ./getpwnam_error
GLIBC loads libnss_compat on the fly and unloads it.
Thanks to telexicon for reporting this...
committer: Markus Bröker <mbroeker@largo.homelinux.org>
CC=gcc -g -ggdb
CFLAGS=-Wall -O2 -Iinclude -ansi
NASM=nasm -f elf -Iinclude/
TARGET=client server
SOBJECTS=server.o set_limit.o
COBJECTS=client.o
.SUFFIXES: .c .asm
.c.o:
@echo Compiling $< ...
@$(CC) -c $(CFLAGS) -o $@ $<
all: $(TARGET)
server: $(SOBJECTS)
@echo Linking $< ...
@$(CC) $(CFLAGS) -o $@ $(SOBJECTS)
client: $(COBJECTS)
@echo Linking $< ...
@$(CC) $(CFLAGS) -o $@ $(COBJECTS)
.PHONY: clean uninstall
clean:
rm -f *.o *~
rm -f $(TARGET)