A recent security notice (http://osdir.com/ml/bugtraq.security/2015-04/msg00102.html) stated that this line of code:
fprintf(stderr, (isprint(adata->contents[i])) ? "%c " : "%02x", adata->contents[i]);
was subject to a "format string attack" which I understand as using something like:
fprintf(stderr, varWithUserSuppliedData);
instead of:
fprintf(stderr, "%s", varWithUserSuppliedData);
but I'm not seeing that in that first fprintf call - what am I missing?