wireshark/epan/dfilter
Peter Wu f2b4daf400 Add printf-format annotations, fix garbage
The WRETH dissector showed up some garbage in the column display. Upon
further inspection, it turns out that the format string had a trailing
percent sign which caused (unsigned)-1 to be returned by
g_printf_string_upper_bound (in emem_strdup_vprintf). Then ep_alloc is
called with (unsigned)-1 + 1 = 0 memory, no wonder that garbage shows
up. ASAN could not even catch this error because EP is in charge of
this.

So, start adding G_GNUC_PRINTF annotations in each header that uses
the "fmt" or "format" paramters (grepped + awk). This revealed some
other errors. The NCP2222 dissector was missing a format string (not
a security vuln though).

Many dissectors used val_to_str with a constant (but empty) string,
these have been replaced by val_to_str_const. ASN.1 dissectors
were regenerated for this.

Minor: the mate plugin used "%X" instead of "%p" for a pointer type.

The ncp2222 dissector and wimax plugin gained modelines.

Change-Id: I7f3f6a3136116f9b251719830a39a7b21646f622
Reviewed-on: https://code.wireshark.org/review/2881
Reviewed-by: Evan Huus <eapache@gmail.com>
2014-07-06 23:00:40 +00:00
..
Makefile.am Support out-of-source checkapi 2014-04-25 04:23:46 +00:00
Makefile.common Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
Makefile.nmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
dfilter-int.h Add printf-format annotations, fix garbage 2014-07-06 23:00:40 +00:00
dfilter-macro.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
dfilter-macro.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
dfilter.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
dfilter.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
dfunctions.c Get rid of more tvb_get_nstringz* calls. 2014-04-12 22:27:22 +00:00
dfunctions.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
dfvm.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
dfvm.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
drange.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
drange.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
gencode.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
gencode.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
grammar.lemon Add printf-format annotations, fix garbage 2014-07-06 23:00:40 +00:00
scanner.l Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
semcheck.c Add printf-format annotations, fix garbage 2014-07-06 23:00:40 +00:00
semcheck.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
sttype-function.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
sttype-function.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
sttype-integer.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
sttype-pointer.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
sttype-range.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
sttype-range.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
sttype-string.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
sttype-test.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
sttype-test.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
syntax-tree.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
syntax-tree.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00