aboutsummaryrefslogtreecommitdiffstats
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2012-08-19Don't go into a tight loop when there's no specific number of passes.eapache1-17/+19
Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7651 Also, use consistent indentation. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44581 f5534014-38df-0310-8fa8-9805f1628bb7
2012-08-19From Toralf Förster via ↵eapache2-2/+2
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7652 Use a fast bash built-in rather than a slow call out to `expr` to increment the loop count. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44580 f5534014-38df-0310-8fa8-9805f1628bb7
2012-08-17Move error reporting to a common function. Lot information about the gerald2-22/+41
most recent revision / commit. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44552 f5534014-38df-0310-8fa8-9805f1628bb7
2012-08-14Bug 3725 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3725)mmann1-9/+0
Have giop dissector use more ephemeral memory. Update idl2wrs dissector generator accordingly. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44498 f5534014-38df-0310-8fa8-9805f1628bb7
2012-08-12Catch more types of valgrind errors in the fuzz-tester.eapache1-0/+3
These happen when, eg, a program runs out of memory under valgrind or other more fatal errors (that may sometimes be valgrind bugs instead). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44451 f5534014-38df-0310-8fa8-9805f1628bb7
2012-08-08From Michael Mann on -dev:morriss1-1/+1
The idl2wrs generated dissectors don't follow the convention of using the filter name registered with the protocol as the start of any display filter name. This patch fixes that. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44325 f5534014-38df-0310-8fa8-9805f1628bb7
2012-08-08Use expert infos instead of g_warning when something unexpected is found.morriss1-11/+25
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44324 f5534014-38df-0310-8fa8-9805f1628bb7
2012-08-01Add support for (ignoring) idl2wrs generated dissectors.mmann1-33/+80
Add commandline options to show file line numbers of dissectors. The default is to have no line numbers shown as its easier to compare results without a minor file change causing the line number of the filter to change resulting in an unnecessary difference. Add commandline option to check filter names of automated files (default disabled). Check for underscores prefacing or following a period in filter names as this is probably a typo. Cleaned up output when checking a single file. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44182 f5534014-38df-0310-8fa8-9805f1628bb7
2012-07-31Add comments to point out that these 2 scripts do the same thing.morriss2-4/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44175 f5534014-38df-0310-8fa8-9805f1628bb7
2012-07-27Update the usage stanza for fuzz-test to reflect the changes in r44024.eapache1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44083 f5534014-38df-0310-8fa8-9805f1628bb7
2012-07-27Use HEAD for git-compare-abis.shdarkjames1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44072 f5534014-38df-0310-8fa8-9805f1628bb7
2012-07-26valgrind-wireshark.sh:eapache2-22/+45
- add support for 2-pass dissection and config profiles - make whitespace a consistent 4-spaces fuzz-test.sh: - update 2-pass support to use -2 and not the old -P - add support for fuzz-testing under valgrind with the new -g option git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44024 f5534014-38df-0310-8fa8-9805f1628bb7
2012-07-23Add cppcheck tools to the source distribution.morriss1-1/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43944 f5534014-38df-0310-8fa8-9805f1628bb7
2012-07-23r43756 said that _snwprintf is banned. Make it so.morriss1-1/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43939 f5534014-38df-0310-8fa8-9805f1628bb7
2012-07-21Enhancements to the cppcheck script:eapache1-16/+18
- Take command-line arguments of files to check. In this case make output GCC-like, as it's much more human-readable than the HTML. - If there are no arguments, provide HTML output for the entire current directory like before, for use with build-bot integration. - Don't hack with the CWD to try and get include-paths to work. Cppcheck will warn already if it can't find them, and since a lot of the checks still work in any case, a warning is more appropriate than an error or a hack. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43882 f5534014-38df-0310-8fa8-9805f1628bb7
2012-07-19Add a local errorCount variable to functions that use it, have themguy1-2/+7
return it, and use the return value. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43818 f5534014-38df-0310-8fa8-9805f1628bb7
2012-07-19Yup, that did it. Make use of ENC_ values in non-item proto_tree_addguy1-1/+3
calls an error. Fix one case where we weren't counting an error (unregistered ett variables). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43817 f5534014-38df-0310-8fa8-9805f1628bb7
2012-07-18Add basic CppCheck configuration and runner.eapache3-0/+68
Probably subject to change as it gets integrated into the build-bot. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43778 f5534014-38df-0310-8fa8-9805f1628bb7
2012-07-17Use G_MININT32 instead of -2^31 so as to get rid of 'this decimal constant ↵pascal1-1/+3
is unsigned only in ISO C90' warning git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43764 f5534014-38df-0310-8fa8-9805f1628bb7
2012-07-13Fix Coverity CID 709600: Resource leak.cmaynard1-0/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43694 f5534014-38df-0310-8fa8-9805f1628bb7
2012-07-09From Martin Kaiser:etxrab1-3/+6
CID 280531: "Argument cannot be negative" in lemon https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7453 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43619 f5534014-38df-0310-8fa8-9805f1628bb7
2012-07-08Add a function to packet-giop.c that does what the code that morriss1-10/+1
template_get_CDR_string (in wireshark_gen.py) did. This eliminates another whole pile of function-local variables in packet-parlay.c. Unfortunately it doesn't seem to speed up compilation (or eliminate the variable tracking size limit problem). But it does eliminate a lot of lines of code... git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43610 f5534014-38df-0310-8fa8-9805f1628bb7
2012-07-08Eliminate a lot of function-local variables by not storing the result ofmorriss1-161/+55
(several of the) get_CDR_*() functions: instead call the function directly in the proto_tree_add_text() calls. Eliminate a lot of global variables that are only later used in (a single) strcmp(). All the GIOP dissectors are built-in now; don't include the (#if'd out) plugin registration code in the generated dissector. Try to clean up the formatting of the generated code a bit. Regenerate the IDL dissectors; as noted in r39932, this seems to involve a lot of function re-ordering in packet-parlay.c (making the delta bigger). These changes decrease the time to compile packet-parlay.c by, on my system, about half. But it still complains: variable tracking size limit exceeded with -fvar-tracking-assignments, retrying without and it still takes "too long." git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43609 f5534014-38df-0310-8fa8-9805f1628bb7
2012-07-03As suggested by Jakub in ↵morriss1-0/+39
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7429#c4 : Add checks for calls to proto_tree_add_XXX (where XXX != item and a few other functions) with an encoding (ENC_*) argument. Also add a comment to checkAddTextCalls() about why 3 loops are used. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43563 f5534014-38df-0310-8fa8-9805f1628bb7
2012-07-02From Todd Eigenschink via ↵morriss1-1/+1
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7411 : Have runlex.sh exit with the exit status of lex (if it failed). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43555 f5534014-38df-0310-8fa8-9805f1628bb7
2012-06-28Update FSF address - part II.darkjames11-11/+11
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43538 f5534014-38df-0310-8fa8-9805f1628bb7
2012-06-28Update Free Software Foundation address.darkjames18-20/+20
(COPYING will be updated in next commit) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43536 f5534014-38df-0310-8fa8-9805f1628bb7
2012-06-20Use separate filters for the RTT found on a SACK and the RTT found on amorriss18-158/+420
DATA chunk: having them in both places is helpful when looking at the messages but having them separate is helpful when graphing the RTTs. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43406 f5534014-38df-0310-8fa8-9805f1628bb7
2012-03-08Rewrite this shell script so that it sets the appropriate SVN properties basedmorriss1-3/+62
on the file name that is being added. Add a copyright notice. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@41414 f5534014-38df-0310-8fa8-9805f1628bb7
2012-03-07Revise and enable test for hf[] FT_BOOLEAN fields with a non-zero bit mask ↵wmeier1-8/+9
and with BASE_... in the 'display' field. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@41399 f5534014-38df-0310-8fa8-9805f1628bb7
2012-03-06Add test for correct usage of hf[] FT_BOOLEAN 'display' field;wmeier1-0/+8
(Commented out until all the incorrect usages in Wireshark have been fixed). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@41380 f5534014-38df-0310-8fa8-9805f1628bb7
2012-03-06Prohibit using anything other than FT_BOOLEANs with true_false_strings.morriss1-0/+8
Prohibit using FT_BOOLEANS with value_strings. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@41364 f5534014-38df-0310-8fa8-9805f1628bb7
2012-02-29Use GTK 2.24.10 for win32.etxrab1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@41237 f5534014-38df-0310-8fa8-9805f1628bb7
2012-02-29From Gilbert Ramirez: When filtering on a single-byte byte-array-slice, ↵etxrab1-0/+40
using a normal hex string would be nice git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@41232 f5534014-38df-0310-8fa8-9805f1628bb7
2012-02-24g_fprintf() & g_vfprintf() should not be used....wmeier1-0/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@41181 f5534014-38df-0310-8fa8-9805f1628bb7
2012-02-22More debugging information - in at least one of the failures, neither ofguy1-0/+6
the "Wrote xxx" messages was printed, although the compiler appeared to have been run on the .c file that was never claimed to have been written, but got an error because it couldn't find the .h file (also never claimed to have been written), and in one of the successes on the same buildbot, they were both printed for the same file. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@41133 f5534014-38df-0310-8fa8-9805f1628bb7
2012-02-08As suggested by Joerg on the -dev list yesterday: count up the number ofmorriss1-1/+39
proto_tree_add_text() calls and compare that to the number of proto_tree_add_<something else>() calls and complain if more than 50% of the calls are add_text()'s. proto_tree_add_text() calls whose returned proto_item is used are not counted as hanging a subtree off a text item is an appropriate use for text items. I chose 50% because even at that level there are many dissectors with "too many" proto_tree_add_text()'s. The function to do all of this is commented out for now for the same reason plus the fact that it's pretty slow. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40930 f5534014-38df-0310-8fa8-9805f1628bb7
2012-02-02Include config.h in preparation of moving the definitionjmayer1-0/+4
of _U_ from the compiler command line into config.h git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40806 f5534014-38df-0310-8fa8-9805f1628bb7
2012-01-29Add *.sbr files to the clean target.etxrab1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40763 f5534014-38df-0310-8fa8-9805f1628bb7
2012-01-26make-dissector-reg.py doesn't always open its cache file.gerald1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40736 f5534014-38df-0310-8fa8-9805f1628bb7
2012-01-26Apply changes from the "2to3" conversion utility. Print cache information.gerald1-8/+14
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40734 f5534014-38df-0310-8fa8-9805f1628bb7
2012-01-19Update abi-compliance-checker options to be compatible with 1.96.1rbalint1-2/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40597 f5534014-38df-0310-8fa8-9805f1628bb7
2012-01-19Update list of deprecated GLib fcns;wmeier1-61/+85
Add comment about Wireshark build defines G_DISABLE_DEPRECATED. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40584 f5534014-38df-0310-8fa8-9805f1628bb7
2012-01-18Fix a typo; Remove a dup.wmeier1-3/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40572 f5534014-38df-0310-8fa8-9805f1628bb7
2012-01-18Update:wmeier1-1518/+1558
- Mark GDK functions which aren't used as 'E' - Add GTK functions deprecated after GTK 2.20 - Add some comments about use of GTK_DISABLE_DEPRECATED - reformat ... git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40569 f5534014-38df-0310-8fa8-9805f1628bb7
2012-01-16The last GMemChunk usage in Wireshark has been replaced; Error out for any ↵wmeier1-16/+16
such usage. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40548 f5534014-38df-0310-8fa8-9805f1628bb7
2012-01-14Add some debugging output to help track down an intermittent problem ongerald1-1/+5
one of the buildbots. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40489 f5534014-38df-0310-8fa8-9805f1628bb7
2012-01-06Add quotes around some filename usage; Also: use $() instead of backtickswmeier1-21/+21
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40396 f5534014-38df-0310-8fa8-9805f1628bb7
2011-12-28Add svn:executable propertywmeier1-0/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40310 f5534014-38df-0310-8fa8-9805f1628bb7
2011-12-12Allow for true error reporing.jake1-18/+18
Move the comment to where it's intended. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40158 f5534014-38df-0310-8fa8-9805f1628bb7