aboutsummaryrefslogtreecommitdiffstats
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2013-07-15Get rid of "win-setup.sh: line 24: $'\r': command not found" warningPascal Quantin1-1/+0
svn path=/trunk/; revision=50642
2013-07-15Set convert_proto_tree_add_text has executableAlexis La Goutte1-0/+0
svn path=/trunk/; revision=50607
2013-07-14Generate better hf_ nameMichael Mann1-77/+81
Generate initial filter name Apply consistent whitespace svn path=/trunk/; revision=50567
2013-07-13set svn propertiesMartin Kaiser1-419/+419
svn path=/trunk/; revision=50561
2013-07-13Here's a tool to help in the conversion of proto_tree_add_text to ↵Michael Mann1-0/+419
proto_tree_add_item. It's still rough around the edges, but it's a lot better than doing it all manually. It targets proto_tree_add_text functions with formatted parameters. It "guesses" the necessary parameters for proto_tree_add_item and the associated hf_ strictly through proto_tree_add_text parameters, so it does better for cases where the tvb_ function (ie tvb_get_guint8) is one of the printf style parameters in the proto_tree_add_text. If there are cleaner ways (better regex) to represent the logic, please feel free to update. The key is to improve the "defaults" detected so less manual editting of the proto_tree_input file (and subsequent dissector file) is necessary. I'll be testing it more (and probably updating) as I try to work through the checkAPIs.pl "naughty list" (now that the list has expanded) svn path=/trunk/; revision=50559
2013-07-12Add a (GPLv2+) license header, copyright Balint.Jeff Morriss1-2/+22
svn path=/trunk/; revision=50543
2013-07-12Add (GPLv2+) license headers to these scripts, assigning the copyright toJeff Morriss6-6/+127
the original author of the scripts (Gerald). svn path=/trunk/; revision=50542
2013-07-08Include the output (fuzz'd) file name in the output when fuzz (or randpkt)Jeff Morriss2-3/+2
testing fails. Useful for when you want to use up a few spare CPU cores running multiple simultaneous fuzz tests... svn path=/trunk/; revision=50449
2013-07-06Add support for filterable expert info fields. Statistics don't separate ↵Michael Mann1-0/+39
out the expert info fields from the hf_ fields because we're really just looking for display filter name errors, regardless of source. svn path=/trunk/; revision=50398
2013-07-05Make checkAPIs.pl a little more discerning when looking for too many ↵Michael Mann1-2/+5
proto_tree_add_text()s. I believe the intent was to ignore "small" dissectors that didn't have enough fields to qualify, but the previous logic ignored dissectors that were (almost) all proto_tree_add_text and no proto_tree_add_xxx. I'm flexible on the definition of "small" (20 "fields"), but I think checkAPIs should flag the "all proto_tree_add_text" dissectors. svn path=/trunk/; revision=50385
2013-07-03Fix Coverity CID 660 (Negative array index read) by holding off the ↵Chris Maynard1-18/+34
assignment to yytos until after we check that pParser->yyidx is non-negative. See also: http://cwe.mitre.org/data/definitions/129.html #BACKPORT(1.10) svn path=/trunk/; revision=50336
2013-07-03Fix Coverity CID 280323 (Free of array-typed value) by ensuring that ↵Chris Maynard1-6/+6
tpltname doesn't point to the buf[] stack array before attempting to free it. #BACKPORT(1.10) svn path=/trunk/; revision=50335
2013-07-03WS_DLL_PUBLIC is now always WS_DLL_PUBLIC_NOEXTERN with "extern" added;Guy Harris3-9/+9
just define WS_DLL_PUBLIC_NOEXTERN inside the ifdefs, and define WS_DLL_PUBLIC as WS_DLL_PUBLIC_NOEXTERN followed by "extern". Then rename WS_DLL_PUBLIC_NOEXTERN to WS_DLL_PUBLIC_DEF, to clarify that it's what should be used for definitions; at least on Windows, you *have* to use it when declaring arrays without a size, and, whilst you might be able to use WS_DLL_PUBLIC for definitions of functions and perhaps data definitions other than no-size arrays, it might be clearer to rename WS_DLL_PUBLIC to WS_DLL_PUBLIC_DECL and use it only for declarations. svn path=/trunk/; revision=50334
2013-06-25makefile.nmake -> Makefile.nmake and minor whitespace (spaces -> tabs) changes.Chris Maynard1-1/+1
svn path=/trunk/; revision=50140
2013-06-19From Orgad Shaneh via bug 8308 - allow a relative path for the ↵Graham Bloice1-3/+4
WIRESHARK_LIBS location. svn path=/trunk/; revision=50065
2013-06-19Add a couple of missing lines from the usage output.Martin Mathieson1-1/+1
svn path=/trunk/; revision=50043
2013-06-10tools/lemon/lemon.c: Fix an integer shortening issue. (CMake enablesGerald Combs1-1/+1
-Werror here but Autotools doesn't. Which is correct?) epan/dissectors/dcerpc: idl2wrs isn't an installed executable in Autotools so don't make it one in CMake. svn path=/trunk/; revision=49871
2013-06-05Add a -Y option to match test-captures.sh: it runs tshark with a read filter ↵Jeff Morriss1-1/+2
but without building the tree. svn path=/trunk/; revision=49797
2013-06-05Add a new environment variable to cause abort()s if we add too many itemsJeff Morriss3-17/+13
to the tree (to separate this case from the generic DISSECTOR_BUG case). Enable this environment variable when fuzz testing. Enable the 3rd (without tree but with a read filter) check (added in r49643) when testing capture files but not when fuzz testing--not sure if we want to add even more to the fuzzbot's work load now (OTOH I've been running it for a while and it hasn't buried me in bugs). svn path=/trunk/; revision=49784
2013-06-04Allow C directives in #.FN_HDR, #.FN_FTR, #.FN_BODY, they have to start with ##Tomas Kukosa1-1/+5
svn path=/trunk/; revision=49763
2013-05-31Oh yeah, -R is now -Y in trunk.Jeff Morriss2-2/+2
svn path=/trunk/; revision=49646
2013-05-31As discussed in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8728#c4 :Jeff Morriss2-0/+18
Running tshark with a read filter ("-R") and without building the full tree ("-V") causes it to run into some more bugs (usually loops adding more than 100000 items to the tree). Add some (commented out for now) code to do this... svn path=/trunk/; revision=49643
2013-05-30Install fop and asciidoc tooJeff Morriss1-1/+1
svn path=/trunk/; revision=49639
2013-05-30Upgrade user manualPascal Quantin2-2/+2
svn path=/trunk/; revision=49634
2013-05-30test-common.sh doesn't need to be executable (it is sourced, not executed); ↵Jeff Morriss1-0/+0
remove the svn:executable property. svn path=/trunk/; revision=49626
2013-05-30Exit if we can't load the test-common.sh library.Jeff Morriss3-3/+3
svn path=/trunk/; revision=49625
2013-05-29If using cygwin, there is no pbcopy or xsel, but we do have putclip.Chris Maynard1-1/+5
svn path=/trunk/; revision=49618
2013-05-28Use the local libtool rather than whatever is in PATH. This works justEvan Huus1-1/+1
the same everywhere I've tested except my mac setup where it works better (since the libtool in PATH doesn't have --mode=execute for some strange reason). This is fairly experimental - feel free to revert if it breaks something. svn path=/trunk/; revision=49604
2013-05-27Postfix FT_NONE fields with "_element" string to reduce number of ↵Pascal Quantin1-1/+4
incompatible filters in ASN.1 dissectors https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2402 svn path=/trunk/; revision=49599
2013-05-24Use new expert info API in idl dissectors. These generated about 50% of the ↵Michael Mann1-11/+41
add_expert_info_format() calls. svn path=/trunk/; revision=49561
2013-05-23Add -p option to the valgrind script for profiling with callgrind.Evan Huus1-1/+2
svn path=/trunk/; revision=49543
2013-05-21Enhance backport-rev scriptAlexis La Goutte1-1/+14
pbcopy is not available in Linux (only in Mac OS) Add check if pbcopy is available or xsel (a linux variante) svn path=/trunk/; revision=49483
2013-05-20Remove some of the extra noise added while trying to figure out whyEvan Huus1-2/+1
the build-bot's valgrind pass wasn't running with/without tree. It's still broken, but the debug output wasn't giving us any useful information. svn path=/trunk/; revision=49464
2013-05-20Make the minimum supported GLib version 2.16.Gerald Combs1-6/+0
svn path=/trunk/; revision=49444
2013-05-20No always : after URL in svn infoAlexis La Goutte1-1/+1
svn path=/trunk/; revision=49440
2013-05-20Add Modelines Info and remove a tabAlexis La Goutte1-1/+14
svn path=/trunk/; revision=49439
2013-05-19test-fuzzed-cap.sh is now test-captures.shJeff Morriss1-1/+1
svn path=/trunk/; revision=49416
2013-05-19Update test-fuzzed-cap.sh:Evan Huus2-104/+66
- support testing multiple files at once - use tools/test-common.sh to make sure we have the most up-to-date environment variables set (the old version was missing the WMEM_ one for example) - rename to test-captures.sh since it works just fine on non-fuzzed files svn path=/trunk/; revision=49412
2013-05-15If 'svn merge' doesn't work show what applying the patch manually wouldGerald Combs1-4/+15
do. svn path=/trunk/; revision=49319
2013-05-11Support running the massif valgrind tool for memory profiling.Evan Huus1-2/+4
svn path=/trunk/; revision=49251
2013-04-30Add 'dtds' and 'fix' directories to the checklicense whitelist, they don'tEvan Huus1-0/+6
appear to be things we have licensing power over (IANAL). svn path=/trunk/; revision=49095
2013-04-30Move the contents of wsar_html/core to wsar_html. Create tag files forGerald Combs1-1/+1
core, epan, and ui, and link them to each other to varying degrees. This seems to be the best way to organize our documentation. The alternative is to switch to a single doxygen.cfg and manually add files to different groups or sections. Add a wireshark.dox file which contains markup for the main page. Add .dox and .txt to svnadd. Clean up our tag files. Force wsar_html to rebuild each time. svn path=/trunk/; revision=49091
2013-04-28Specify to CppCheck that Wireshark code is C89, not the default C11.Evan Huus1-1/+1
svn path=/trunk/; revision=49083
2013-04-27When fuzzing with valgrind and running without -T, run with -v so that theEvan Huus1-1/+1
argument string is non-empty. Perhaps this will fix the fuzz-bot which fails to run with the empty argument string... svn path=/trunk/; revision=49075
2013-04-26Try to determine the repository URL automatically.Gerald Combs1-1/+7
svn path=/trunk/; revision=49056
2013-04-23Add two tools useful for package maintainers:Gerald Combs2-0/+189
backport-rev attempts to merge a revision from the trunk in the current directory (presumably one of the release branches). gen-bugnote fetches a bug title from bugs.wireshark.org and formats it for inclusion in the release notes. svn path=/trunk/; revision=49004
2013-04-18See whether we can whitelist 'GPL (v3 or later)' for the output of BisonGuy Harris1-0/+6
run on wiretap/ascend.y. svn path=/trunk/; revision=48908
2013-04-17Remove chromium-specific license exceptions which it makes no sense forEvan Huus1-338/+1
us to carry. Add an exception of our own for tools/pidl since that is GPL but the headers are not in a format that licensecheck will pick up, and fixing them all would just introduce a delta with upstream for no reason. svn path=/trunk/; revision=48896
2013-04-17Reverse the arguments we feed to valgrind-wireshark.sh. Add debuggingGerald Combs1-2/+3
output. svn path=/trunk/; revision=48895
2013-04-15Fix a typo.Gerald Combs1-1/+1
svn path=/trunk/; revision=48865