diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-03-30 12:45:18 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-03-30 12:45:18 -0700 |
commit | 708a68aee4c00fc079b13853f264617f448dfbb0 (patch) | |
tree | bb96b8d2b7c0482209afcef7ef4459a6a2a8dc71 /print-pktap.c | |
parent | 663090dbf90a0fc56626df881b4387265b83faa3 (diff) | |
download | tcpdump-708a68aee4c00fc079b13853f264617f448dfbb0.tar.gz |
Fix some unsafe print calls.
The format argument to a printf-like routine should either be a constant
string or a variable *known* to point to a format string. It should not
be an arbitrary string you're trying to print - if that string contains
% characters, they will be interpreted as part of a format
specification, which can cause crashes (e.g., "%s", if what appears to
be an argument corresponding to that %s, when interpreted as a pointer,
doesn't point to a valid string) or other incorrect behavior.
If you want to print a string, use "%s" as the format and the string as
the argument.
Diffstat (limited to 'print-pktap.c')
0 files changed, 0 insertions, 0 deletions