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>
/**
* test/demos/lsflib/include/lsf.h
* Copyright (C) 2008 Markus Broeker
*/
#ifndef __LSF_H__
#define __LSF_H__
#ifndef LINE_LENGTH
#define LINE_LENGTH 100
#endif
#include <stdio.h>
#ifndef __LIST__H
#include <list.h>
#endif
/* tokenizer splits a file into tokens */
Node *tokenizer (FILE *, const char *);
/* tokenchar splits a file into chars */
int tokenchar (FILE *);
/* get_line returns a multiline string str="...\n..." */
char *get_line (const char *, const char *, size_t);
/* isDir returns true, if a fd points to a dir */
int isDir (char *);
/* isDir returns true, if a fd points to a file */
int isFile (char *);
/* getdir prints a dir hierarchy */
void getdir (char *, int);
/* returns a pointer int* */
unsigned char *md5sum (char *);
void md5recursive (char *, int);
#endif