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
LD=ld
YACC=bison -v
FLEX=flex
CFLAGS=-Wall -O2 -ansi -D_XOPEN_SOURCE=500
LDFLAGS=
INCLUDE=include
OBJECTS=main.o parser.o lexer.o
TARGET=mcc
.SUFFIXES: .c .y .l
.c.o:
$(CC) -c $(CFLAGS) -I$(INCLUDE) $(CONFIG) $<
.y.c:
$(YACC) -d $< -o $@
.l.c:
$(FLEX) -o $@ $<
all: $(TARGET)
$(TARGET): $(OBJECTS)
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) -o $@
.PHONY: distclean clean indent
clean:
rm -f *.[oae];
rm -f *~;
distclean:
make clean
rm -f $(TARGET)
rm -f parser.h
rm -f parser.output
indent:
indent *.c *.h
eraser *.c *.h
install: $(TARGET)
[[ -x ~/bin/ ]] && cp -f $(TARGET) ~/bin