aboutsummaryrefslogtreecommitdiffstats
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2012-10-14Add verbose option to the cppcheck script.Evan Huus1-1/+2
svn path=/trunk/; revision=45542
2012-10-13Enhancements to the CppCheck script:Evan Huus1-11/+37
- make html output a flag (-h), instead of what happens when you specify no files - add flag (-j) for job count, like make et al. - add flag (-a) to ignore the suppressions file and report all issues - require /bin/bash instead of just /bin/sh in order to get arithmetic $(()) - add mode-lines svn path=/trunk/; revision=45520
2012-10-11Make idl2wrs dissectors filterable - Part 1Michael Mann1-198/+622
Updated wireshark_gen.py to generate hf_ variables for all of the IDL "types". The "simple" types use proto_tree_add_* (not text), while the "complex" types use the GIOP dissector API. checkhf.pl generates some warnings because (some of) the hf_ variables are being generated for the "complex" types, but are not being used. That will be done in Part 2. expert_add_info_format now linked to a real item instead of being attached to a duplicative proto_tree_add_text(). This cleaned up literally thousands of unnecessary proto_tree_add_text()s svn path=/trunk/; revision=45472
2012-10-09If our error output is huge (> 5 MB) trim out the middle of the file.Gerald Combs2-0/+18
The recent loop bugs have generated output that's too large to attach to Bugzilla. svn path=/trunk/; revision=45437
2012-10-07Make "tools", which includes lrelease. Update the version to 4.8.3.Gerald Combs1-3/+3
svn path=/trunk/; revision=45362
2012-10-03Add the command and arguments to the error file.Gerald Combs2-1/+4
svn path=/trunk/; revision=45294
2012-10-03Fix return code checking (hopefully).Gerald Combs2-2/+2
svn path=/trunk/; revision=45289
2012-10-02Test with the presence (-nVxr) and absence (-nr) of the tree. We nowGerald Combs2-11/+23
use an array of arguments so additional combinations can be added. svn path=/trunk/; revision=45258
2012-09-29From Bill Parker:Guy Harris1-13/+25
Add some additional memory-allocation failure checks in Lemon. Use NULL rather than 0 as the null-pointer constant in those checks. From me: Catch one more of the NULL-vs-0 cases. Fix some failure messages to use fprintf(stderr, ...) - ErrorMsg() requires a file name and line number, and is generally used if you're going to continue rather than just give up. svn path=/trunk/; revision=45214
2012-09-27Added additional server information in NCP 23/17 reply structure for OES Linux.Greg Morris1-1/+13
Fixed GTKHash table being overwritten when number of NCP packets exceeds 255. Sequence numbers wrap so this was causing the request value table to be overwritten and subsequent malformed NCP packets. Fixed buid_expert_data for file open reporting to correctly convert to Hex value so proper lookup in val table will succeed. Added additional OES Linux values to build_expert_data for server entries. svn path=/trunk/; revision=45177
2012-09-25Touch the file in make-dissector-reg.py if it hasn't changed, so thatEvan Huus1-0/+14
we don't try and regenerate it every single subsequent build. Also, add modelines. svn path=/trunk/; revision=45117
2012-09-24Update make-dissector-reg.py to match r45083. Instead of writing the newGerald Combs1-59/+54
plugin.c or register.c content to a temporary file build a giant string in memory and only write it if the current and new hashes differ. This requires hashlib which was added in Python 2.5; hopefully that's not a problem. svn path=/trunk/; revision=45104
2012-09-24make-dissector-regJörg Mayer2-1/+5
Only update outfile if it differs from newly created outfile make-dissector-reg.py Add a comment that we should do the same here (probably a small task for python knowledeable people). svn path=/trunk/; revision=45083
2012-09-21Followup to r45034: Don't define _U_ on the compile line, pull it in fromJeff Morriss3-8/+7
config.h (like we do in cmake). We always HAVE_CONFIG_H so don't check for it. svn path=/trunk/; revision=45050
2012-09-21Revert r45018 and r45019: put config.h back in lemon.c and take _U_ back offJeff Morriss2-6/+3
the compile line when building with cmake. Put _U_'s definition in config.h when building with autofoo and on Windows. svn path=/trunk/; revision=45034
2012-09-20Fix lemon build with cmake by defining _U_. I feel like there's a betterEvan Huus1-0/+6
way than all the horrid escaping I had to do, but I don't know what it is. svn path=/trunk/; revision=45019
2012-09-20lemon is not compiled with HAVE_CONFIG_h so don't test for it nor try to ↵Jeff Morriss1-7/+4
include it. svn path=/trunk/; revision=45018
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-2/+0
svn path=/trunk/; revision=45017
2012-09-19Remove #defines that provided backward source compatibilityJörg Mayer1-7/+0
for deprecated dissector add/remmove/... functions. svn path=/trunk/; revision=45000
2012-09-19We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss5-15/+5
svn path=/trunk/; revision=44997
2012-09-18If we have PYTHON use make-tap-reg.py (in both autofoo and Windows): it'sJeff Morriss1-0/+4
slightly faster than the old shell-script version on *NIX and it seems significantly faster on Windows. svn path=/trunk/; revision=44972
2012-09-17Put back the part of the regexp's that avoids finding function prototypes.Jeff Morriss1-2/+2
svn path=/trunk/; revision=44955
2012-09-17Rather than reading the dissectors line by line and searching for theJeff Morriss1-35/+30
registration and handoff routines in each line, read the whole file into memory and then do one findall() search. Store the matches in sets to avoid duplication. (This also simplifies the number of regexps we're looking for.) This speeds up the generation of register.c (when there is no cache) significantly (on my system the time taken drops from ~32 seconds to ~5 seconds). svn path=/trunk/; revision=44954
2012-09-17Unique-ify the list of dissector registration and handoff functions while weJeff Morriss1-3/+4
sort them. Avoids the double registration problem discussed on -dev today. Note: the sorted() call requires Python 2.4+ but I think that's OK now. svn path=/trunk/; revision=44952
2012-09-13Remove our local copy of WinPcap and download it fromGerald Combs3-15/+17
wireshark-win{32,64}-libs instead. In win-setup.sh only try to unzip files ending in .zip. PortableApps and U3 packaging changes are untested. svn path=/trunk/; revision=44888
2012-09-10Initial commit to support yet another method of passing data between dissectors.Jakub Zawadzki1-2/+4
Add new parameter 'data' to heur_dissector_t and new_dissector_t, for now it's always NULL svn path=/trunk/; revision=44860
2012-09-10Use non-capturing grouping when grouping just for alternatives;Bill Meier1-6/+6
Also: improve error message slightly in the case of a missing NULL termination. svn path=/trunk/; revision=44826
2012-09-10string_strings and range_strings must also be {0, NULL} terminated.Jeff Morriss1-40/+42
Also, remove some tabs. svn path=/trunk/; revision=44824
2012-09-05Run 'git log' if we have a .git directory. Fixes a copy+paste error.Gerald Combs2-2/+2
svn path=/trunk/; revision=44784
2012-09-05Replace process_RequestOperation macro by a real function to speedup ↵Pascal Quantin1-6/+14
compilation time svn path=/trunk/; revision=44779
2012-08-24Check for PFNAME #define as it is a common substitute for a literal string ↵Michael Mann1-3/+20
for the proto filter name and consider it the proto filter name. Ignore "duplicates" that are generated because a display filter is prefixed by a #define (which checkfiltername.pl is not smart enough to handle), causing an empty string svn path=/trunk/; revision=44654
2012-08-23Allow proto filter names to have a period in them and allow display filter ↵Michael Mann1-0/+26
names to use any period separated value as a prefix. For example "gmr1.foo.bar" would allow "gmr1", "gmr1.foo" and "gmr1.foo.bar" as valid prefixes. Otherwise it will be flagged as a possible error. Also added a "FILE TYPE" for proto filter names with a period so that they can be verified. Presumably only "large", possibly "meta" protocols (probably spanning multiple dissector files) will be allowed to use a period in the proto filter name. svn path=/trunk/; revision=44648
2012-08-19Don't go into a tight loop when there's no specific number of passes.Evan Huus1-17/+19
Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7651 Also, use consistent indentation. svn path=/trunk/; revision=44581
2012-08-19From Toralf Förster via ↵Evan Huus2-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. svn path=/trunk/; revision=44580
2012-08-17Move error reporting to a common function. Lot information about the Gerald Combs2-22/+41
most recent revision / commit. svn path=/trunk/; revision=44552
2012-08-14Bug 3725 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3725)Michael Mann1-9/+0
Have giop dissector use more ephemeral memory. Update idl2wrs dissector generator accordingly. svn path=/trunk/; revision=44498
2012-08-12Catch more types of valgrind errors in the fuzz-tester.Evan Huus1-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). svn path=/trunk/; revision=44451
2012-08-08From Michael Mann on -dev:Jeff 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. svn path=/trunk/; revision=44325
2012-08-08Use expert infos instead of g_warning when something unexpected is found.Jeff Morriss1-11/+25
svn path=/trunk/; revision=44324
2012-08-01Add support for (ignoring) idl2wrs generated dissectors.Michael Mann1-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. svn path=/trunk/; revision=44182
2012-07-31Add comments to point out that these 2 scripts do the same thing.Jeff Morriss2-4/+8
svn path=/trunk/; revision=44175
2012-07-27Update the usage stanza for fuzz-test to reflect the changes in r44024.Evan Huus1-1/+1
svn path=/trunk/; revision=44083
2012-07-27Use HEAD for git-compare-abis.shJakub Zawadzki1-2/+2
svn path=/trunk/; revision=44072
2012-07-26valgrind-wireshark.sh:Evan Huus2-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 svn path=/trunk/; revision=44024
2012-07-23Add cppcheck tools to the source distribution.Jeff Morriss1-1/+4
svn path=/trunk/; revision=43944
2012-07-23r43756 said that _snwprintf is banned. Make it so.Jeff Morriss1-1/+2
svn path=/trunk/; revision=43939
2012-07-21Enhancements to the cppcheck script:Evan Huus1-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. svn path=/trunk/; revision=43882
2012-07-19Add a local errorCount variable to functions that use it, have themGuy Harris1-2/+7
return it, and use the return value. svn path=/trunk/; revision=43818
2012-07-19Yup, that did it. Make use of ENC_ values in non-item proto_tree_addGuy Harris1-1/+3
calls an error. Fix one case where we weren't counting an error (unregistered ett variables). svn path=/trunk/; revision=43817
2012-07-18Add basic CppCheck configuration and runner.Evan Huus3-0/+68
Probably subject to change as it gets integrated into the build-bot. svn path=/trunk/; revision=43778