This small code snippet will cause a segment fault in:
RH8
glibc-2.3.2-4.80.8
RH9
glibc-2.3.2-27.9.7
RH ES4
glibc-2.3.4-2.9
#include
#include
#include
int Dump(char *fmt, ...)
{
int leng;
va_list arglist;
char buffer[8192];
va_start(arglist, fmt);
vsnprintf(buffer, sizeof(
You have the wrong list; this is bug-coreutils which deals with the
coreutils package. If you suspect you have a glibc bug, there is a list
called bug-glibc.
Now that that is out of the way, here's an answer:
It is not a bug, but %n is causing vsprintf to expect an argument where
you have pa