Commit Graph

1275 Commits

Author SHA1 Message Date
Michael Mann 94f44f7601 Here's a tool to help in the conversion of proto_tree_add_text to 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-13 21:28:53 +00:00
Jeff Morriss 600e668361 Add a (GPLv2+) license header, copyright Balint.
svn path=/trunk/; revision=50543
2013-07-12 21:53:52 +00:00
Jeff Morriss f3b4e97bcc Add (GPLv2+) license headers to these scripts, assigning the copyright to
the original author of the scripts (Gerald).

svn path=/trunk/; revision=50542
2013-07-12 21:51:34 +00:00
Jeff Morriss 2a62d8e8e6 Include the output (fuzz'd) file name in the output when fuzz (or randpkt)
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-08 19:49:17 +00:00
Michael Mann 9822a1f00a Add support for filterable expert info fields. Statistics don't separate 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-06 02:52:16 +00:00
Michael Mann e2cfb1f173 Make checkAPIs.pl a little more discerning when looking for too many 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-05 14:22:35 +00:00
Chris Maynard fdead4df94 Fix Coverity CID 660 (Negative array index read) by holding off the 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-03 02:28:26 +00:00
Chris Maynard 83b4b73dd1 Fix Coverity CID 280323 (Free of array-typed value) by ensuring that tpltname doesn't point to the buf[] stack array before attempting to free it.
#BACKPORT(1.10)

svn path=/trunk/; revision=50335
2013-07-03 01:47:18 +00:00
Guy Harris 5d87a8c461 WS_DLL_PUBLIC is now always WS_DLL_PUBLIC_NOEXTERN with "extern" added;
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-07-03 01:43:39 +00:00
Chris Maynard ce088c334d makefile.nmake -> Makefile.nmake and minor whitespace (spaces -> tabs) changes.
svn path=/trunk/; revision=50140
2013-06-25 15:32:49 +00:00
Graham Bloice e6e7c1181b From Orgad Shaneh via bug 8308 - allow a relative path for the WIRESHARK_LIBS location.
svn path=/trunk/; revision=50065
2013-06-19 23:06:14 +00:00
Martin Mathieson b49fbad27d Add a couple of missing lines from the usage output.
svn path=/trunk/; revision=50043
2013-06-19 18:06:46 +00:00
Gerald Combs 62d87b6cad tools/lemon/lemon.c: Fix an integer shortening issue. (CMake enables
-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-10 18:55:03 +00:00
Jeff Morriss 1cc0587d00 Add a -Y option to match test-captures.sh: it runs tshark with a read filter but without building the tree.
svn path=/trunk/; revision=49797
2013-06-05 21:30:08 +00:00
Jeff Morriss 470bd4455a Add a new environment variable to cause abort()s if we add too many items
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-05 14:08:40 +00:00
Tomas Kukosa fd5c1ddf5c Allow C directives in #.FN_HDR, #.FN_FTR, #.FN_BODY, they have to start with ##
svn path=/trunk/; revision=49763
2013-06-04 14:07:36 +00:00
Jeff Morriss b49c3e7eca Oh yeah, -R is now -Y in trunk.
svn path=/trunk/; revision=49646
2013-05-31 02:03:03 +00:00
Jeff Morriss c56c403a52 As discussed in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8728#c4 :
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-31 01:38:55 +00:00
Jeff Morriss b047518b18 Install fop and asciidoc too
svn path=/trunk/; revision=49639
2013-05-30 21:47:24 +00:00
Pascal Quantin bc78191e31 Upgrade user manual
svn path=/trunk/; revision=49634
2013-05-30 20:13:56 +00:00
Jeff Morriss 50bb0650ca test-common.sh doesn't need to be executable (it is sourced, not executed); remove the svn:executable property.
svn path=/trunk/; revision=49626
2013-05-30 00:36:58 +00:00
Jeff Morriss 4509929f2a Exit if we can't load the test-common.sh library.
svn path=/trunk/; revision=49625
2013-05-30 00:35:46 +00:00
Chris Maynard 22f16fc80c If using cygwin, there is no pbcopy or xsel, but we do have putclip.
svn path=/trunk/; revision=49618
2013-05-29 15:59:19 +00:00
Evan Huus eae1f37865 Use the local libtool rather than whatever is in PATH. This works just
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-28 22:29:02 +00:00
Pascal Quantin 0ee4d0a00a Postfix FT_NONE fields with "_element" string to reduce number of incompatible filters in ASN.1 dissectors
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2402

svn path=/trunk/; revision=49599
2013-05-27 20:26:49 +00:00
Michael Mann 5e86cb9bf4 Use new expert info API in idl dissectors. These generated about 50% of the add_expert_info_format() calls.
svn path=/trunk/; revision=49561
2013-05-24 18:09:57 +00:00
Evan Huus 396a1881b7 Add -p option to the valgrind script for profiling with callgrind.
svn path=/trunk/; revision=49543
2013-05-23 02:30:40 +00:00
Alexis La Goutte c97865c179 Enhance backport-rev script
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-21 16:57:55 +00:00
Evan Huus 0c671d8d4d Remove some of the extra noise added while trying to figure out why
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-20 22:00:39 +00:00
Gerald Combs c0702583d3 Make the minimum supported GLib version 2.16.
svn path=/trunk/; revision=49444
2013-05-20 17:27:05 +00:00
Alexis La Goutte fc9f9dde91 No always : after URL in svn info
svn path=/trunk/; revision=49440
2013-05-20 16:32:11 +00:00
Alexis La Goutte 5cd90aeec7 Add Modelines Info and remove a tab
svn path=/trunk/; revision=49439
2013-05-20 16:32:03 +00:00
Jeff Morriss fcdc86eb1f test-fuzzed-cap.sh is now test-captures.sh
svn path=/trunk/; revision=49416
2013-05-19 15:00:32 +00:00
Evan Huus 7d63573632 Update test-fuzzed-cap.sh:
- 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-19 12:51:35 +00:00
Gerald Combs 6cc0940305 If 'svn merge' doesn't work show what applying the patch manually would
do.

svn path=/trunk/; revision=49319
2013-05-15 17:51:33 +00:00
Evan Huus 69fae76be1 Support running the massif valgrind tool for memory profiling.
svn path=/trunk/; revision=49251
2013-05-11 19:03:54 +00:00
Evan Huus 108a75a603 Add 'dtds' and 'fix' directories to the checklicense whitelist, they don't
appear to be things we have licensing power over (IANAL).

svn path=/trunk/; revision=49095
2013-04-30 01:34:19 +00:00
Gerald Combs 9120bf883e Move the contents of wsar_html/core to wsar_html. Create tag files for
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-30 00:27:02 +00:00
Evan Huus c17d706c8c Specify to CppCheck that Wireshark code is C89, not the default C11.
svn path=/trunk/; revision=49083
2013-04-28 23:30:29 +00:00
Evan Huus 0a530b2a1f When fuzzing with valgrind and running without -T, run with -v so that the
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-27 14:03:45 +00:00
Gerald Combs b53b4becdd Try to determine the repository URL automatically.
svn path=/trunk/; revision=49056
2013-04-26 19:50:43 +00:00
Gerald Combs 8ea3f82021 Add two tools useful for package maintainers:
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-23 19:21:18 +00:00
Guy Harris 6bfd0bb9d5 See whether we can whitelist 'GPL (v3 or later)' for the output of Bison
run on wiretap/ascend.y.

svn path=/trunk/; revision=48908
2013-04-18 02:06:53 +00:00
Evan Huus d385db2133 Remove chromium-specific license exceptions which it makes no sense for
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-17 19:35:43 +00:00
Gerald Combs b25fa89125 Reverse the arguments we feed to valgrind-wireshark.sh. Add debugging
output.

svn path=/trunk/; revision=48895
2013-04-17 17:23:41 +00:00
Gerald Combs d75dbf9aff Fix a typo.
svn path=/trunk/; revision=48865
2013-04-15 23:16:20 +00:00
Gerald Combs 3954ab4c69 More indentation fixes.
svn path=/trunk/; revision=48864
2013-04-15 23:04:16 +00:00
Gerald Combs cd7796a6ef Handle the IEEE's new! improved! two-space indentation.
svn path=/trunk/; revision=48856
2013-04-15 19:10:15 +00:00
Evan Huus 5afbf48723 Update some of the old FSF addresses caught by the new licensecheck buildbot
step.

svn path=/trunk/; revision=48848
2013-04-14 18:55:28 +00:00
Evan Huus 374c1dd1e3 From Max Baker via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8431
Enhancements to usb scripts to add many more camera models by extracting data
from libgphoto2 (which is LGPL).

svn path=/trunk/; revision=48831
2013-04-12 15:50:55 +00:00
Gerald Combs 267a89b1f4 Make boilerplate consistent with other generated files and recognizable
by licensecheck.

svn path=/trunk/; revision=48826
2013-04-11 20:03:16 +00:00
Gerald Combs 2875b8e3c0 Set properties.
svn path=/trunk/; revision=48821
2013-04-11 18:39:42 +00:00
Gerald Combs a6131151f5 Use consistent "generated automatically" wording which will hopefully be
picked up by licensecheck.

svn path=/trunk/; revision=48812
2013-04-10 21:24:19 +00:00
Gerald Combs 4ea6f01d4d Copy Chromium's checklicenses.py from
http://src.chromium.org/svn/trunk/src/tools/checklicenses/checklicenses.py@190741

The original referred to the project's LICENSE file. Insert its contents from

  http://src.chromium.org/svn/trunk/src/LICENSE@174795

Add an exception for GPLv2 or later.

svn path=/trunk/; revision=48810
2013-04-10 20:36:55 +00:00
Jakub Zawadzki 1c249ca95c NPL stuff:
- stubs for more NPL built-ins
 - try to guess struct size
 - some work on property attribute.

svn path=/trunk/; revision=48774
2013-04-07 17:24:16 +00:00
Anders Broman a9ed804565 From Tomas Kukosa:
Make it possible to sort LocalCode value_strings.

svn path=/trunk/; revision=48720
2013-04-03 16:52:56 +00:00
Jakub Zawadzki cbbf2b01e7 [NPL] Pushing changes to wireshark repo
- parser no longer use abort() after failing
- initial support for attributes
- symbol hashing to avoid strcasecmp()
- misc other fixes

svn path=/trunk/; revision=48672
2013-03-31 15:03:46 +00:00
Jeff Morriss 67172cd3d6 Add a little shell script to install all the RPMs necesary to do Wireshark
development.  Both the development and runtime packages are installed
although the latter aren't strictly necessary.

Ideally this could automatically pull the packages out of
packaging/rpm/SPECS/wireshark.spec.in but given the variance in package names
between distributions, this seems painful...

Tested on Fedora/Redhat and openSUSE.

svn path=/trunk/; revision=48624
2013-03-28 16:59:21 +00:00
Jaap Keuter ae85ba7c58 From Hadriel Kaplan:
The 'make-manuf'perl script gets the IEEE 22-bit OUI and IAB registries, but not OUI-36.
patch to get the OUI-36 listings.

From me:
Update header text in template to list the sources actually used.

svn path=/trunk/; revision=48572
2013-03-26 21:53:09 +00:00
Anders Broman 3dc702e2a8 Align a bit more with upstream.
svn path=/trunk/; revision=48559
2013-03-26 05:36:27 +00:00
Jakub Zawadzki ace8a9cb6a [NPL] another weekend work.
svn path=/trunk/; revision=48527
2013-03-24 16:38:57 +00:00
Tomas Kukosa 109c2326e2 OPERATION and ERROR tables can loop through only items with either local or global CODEs
svn path=/trunk/; revision=48476
2013-03-22 07:30:32 +00:00
Gerald Combs e3156f83be Add .asciidoc support to svnadd. Set properties and add an SVN ID to the
release notes.

svn path=/trunk/; revision=48392
2013-03-18 16:10:35 +00:00
Jakub Zawadzki ccbd2bd44e [NPL] Fresh stuff.
svn path=/trunk/; revision=48353
2013-03-17 15:32:07 +00:00
Martin Kaiser c7dd35dffc flag up a warning if someone includes gcrypt.h instead of wsutil/wsgcrypt.h
svn path=/trunk/; revision=48340
2013-03-16 09:53:19 +00:00
Gerald Combs f076414b6d Sometimes the Python you want isn't /usr/bin/python. Fix the shebang.
svn path=/trunk/; revision=48331
2013-03-15 22:09:25 +00:00
Gerald Combs 1ef83e3e76 Set properties.
svn path=/trunk/; revision=48330
2013-03-15 21:55:21 +00:00
Balint Reczey c2961093be Add asn2deb idl2deb to dist
svn path=/trunk/; revision=48322
2013-03-15 17:37:48 +00:00
Evan Huus 3b4a82d26a Add -W option to valgrind script that just runs the gui without any capture
files.

svn path=/trunk/; revision=48320
2013-03-15 16:42:05 +00:00
Evan Huus 419d10656e Update usage info for valgrind script. We almost need a proper man page for
this now.

svn path=/trunk/; revision=48230
2013-03-10 15:07:42 +00:00
Evan Huus aafe8b18e9 Remove the wmem slab. It was an optimization mimicking the emem slab
(removed in r48218) which did nothing particularly useful. Also lets us remove
another debugging environment variable.

svn path=/trunk/; revision=48219
2013-03-09 20:16:33 +00:00
Evan Huus 122b7cb6df Remove the emem slab feature (sl_* functions) completely, replacing it with
glib memory slices.

- We weren't doing anything with the emem slab that couldn't be done with glib
  slices.
- Removes a fair bit of code as well as one debugging environment variable.
- Glib slices are much cache-friendlier and are multi-threading friendly (if
  we ever go there).
- Allows glib to actually return slices to the OS on occasion. The emem slab
  would hold onto its memory forever which resulted in a great deal of wasted
  memory after closing a large file.

svn path=/trunk/; revision=48218
2013-03-09 20:02:19 +00:00
Jakub Zawadzki 7b9a23a53a [NPL] Misc fixes
svn path=/trunk/; revision=48216
2013-03-09 15:53:30 +00:00
Anders Broman 0685f1d5e1 Update lex and yacc
svn path=/trunk/; revision=48213
2013-03-09 10:10:32 +00:00
Gerald Combs 7613251d1c Switch to WinPcap 4.1.3.
svn path=/trunk/; revision=48207
2013-03-09 01:20:09 +00:00
Gerald Combs ac364779f7 Switch to c-ares 1.9.1.
svn path=/trunk/; revision=48191
2013-03-08 16:51:21 +00:00
Jakub Zawadzki e4ebcf4469 [NPL] Simplify parser for EXPRESSION_FIELD (Expression, ".", ID)
svn path=/trunk/; revision=48178
2013-03-07 19:38:35 +00:00
Balint Reczey a8f543b56b Merge asn2deb and idl2deb from official Debian package
svn path=/trunk/; revision=48133
2013-03-06 13:31:08 +00:00
Anders Broman f20eeffb18 Align lempar somewhat with upstream.
svn path=/trunk/; revision=48071
2013-03-04 22:04:58 +00:00
Jakub Zawadzki 3de8c555d9 [NPL] Treat all keywords as seperates token, when really needed accept it as ID.
This seems to be much easier to maintain...

svn path=/trunk/; revision=48066
2013-03-04 21:00:09 +00:00
Evan Huus 1b4cffc527 Add modelines.
Fix issues caught by cppcheck:
- Remove unused variable.
- Make sure to fclose output file.

svn path=/trunk/; revision=48034
2013-03-03 14:03:00 +00:00
Jakub Zawadzki e0d19cb73a Publish initial version of mine npl (Network Parsing Language) generator sources.
Parser pass almost all npl files from Network Monitor Parsers 3.4.2774 package, 
but but not all data is stored in AST.
Work on wireshark code enerator has been started, but it need much more work.

Beware! It's ugly, putting it to wireshark repo, just to not lose sources :)
(feel free to improve/review it).

svn path=/trunk/; revision=48033
2013-03-03 11:59:14 +00:00
Evan Huus 16bda3caf4 Don't pass -v straight to valgrind, it's rarely useful. Just increasing
num-callers is usually enough.

svn path=/trunk/; revision=48017
2013-03-02 21:16:32 +00:00
Anders Broman 41d6d12497 Rearrang the code to align with sqlite lemon and copy over a few more things.
svn path=/trunk/; revision=48014
2013-03-02 19:34:50 +00:00
Anders Broman bd2b6b9964 Wite space changes.
svn path=/trunk/; revision=48005
2013-03-02 12:09:50 +00:00
Anders Broman b9cb9968f2 lemon.c:3176:8: error: attempt to free a non-heap object ‘buf’
svn path=/trunk/; revision=48003
2013-03-02 11:32:25 +00:00
Anders Broman 310b495ff3 Becport more code.
svn path=/trunk/; revision=48002
2013-03-02 10:56:17 +00:00
Anders Broman ad1ec109ed Missed one place.
svn path=/trunk/; revision=48001
2013-03-02 10:03:43 +00:00
Anders Broman da070427d9 lemon.c:78:14: note: expected ‘int (*)(const void *, const void *)’ but argument is of type ‘int (*)(const char *, const char *)’
svn path=/trunk/; revision=48000
2013-03-02 09:54:52 +00:00
Anders Broman 99d88bd54b More backports from sqlite lemon to try to address warnings.
svn path=/trunk/; revision=47998
2013-03-02 09:04:52 +00:00
Anders Broman 7c3a122e37 lemon.c:4628:5: error: conflicting types for ‘Configcmp’
lemon.c:366:5: note: previous declaration of ‘Configcmp’ was here

svn path=/trunk/; revision=47997
2013-03-02 08:40:49 +00:00
Anders Broman 18c724b0ad More backports from sqlite lemon to try to address warnings.
svn path=/trunk/; revision=47996
2013-03-02 08:19:31 +00:00
Anders Broman a5c53e847e Backports from sqlite lemon.
svn path=/trunk/; revision=47993
2013-03-01 23:54:06 +00:00
Balint Reczey 1ebdb2e521 Export libwireshark symbols using WS_DLL_PUBLIC define
Also remove old WS_VAR_IMPORT define and related Makefile magic
everywhere in the project.

svn path=/trunk/; revision=47992
2013-03-01 23:53:11 +00:00
Jeff Morriss 0b8d70bfb7 Fix a cut-n-pasteo and add a const cast to quiet a warning.
svn path=/trunk/; revision=47991
2013-03-01 22:58:23 +00:00
Anders Broman ea76d02cb2 Backport const casts from sqlite lemon.
svn path=/trunk/; revision=47989
2013-03-01 21:37:48 +00:00
Anders Broman 44993045a2 try to remove C++ incompatibilities from lemon
svn path=/trunk/; revision=47987
2013-03-01 20:32:20 +00:00
Bill Meier a6e56df8b6 it's ==> its & its ==> it's as needed.
svn path=/trunk/; revision=47898
2013-02-26 02:38:52 +00:00
Balint Reczey 6dbd0b68e4 Make compare-abs.sh work on CMake builds
svn path=/trunk/; revision=47884
2013-02-25 21:27:16 +00:00
Gerald Combs 81a5be5813 Enable automatic updates for Win64. Fix a copy/paste error.
svn path=/trunk/; revision=47749
2013-02-19 22:57:40 +00:00
Gerald Combs e48236a436 Add automatic software update checks for Win32 using WinSparkle. Add
preferences (currently hidden) to disable updates, set the update
frequency, and set the update "channel" (stable vs development). Add a
"Help" menu item to manually check for updates.

svn path=/trunk/; revision=47748
2013-02-19 22:21:17 +00:00
Bill Meier f9ecda41e4 Comment out a number of unused hf[] enrries found by checkhf.
svn path=/trunk/; revision=47670
2013-02-15 02:50:36 +00:00
Evan Huus 5071e8b627 Add an option for bypassing the wmem slab similar to the one for
bypassing the emem slab, to aid in debugging with valgrind.

svn path=/trunk/; revision=47656
2013-02-14 16:07:25 +00:00
Guy Harris eb769ce13e Clean up some warnings (including warnings that ultimately come from
trying to modify string constants, which isn't necessarily guaranteed to
work).

svn path=/trunk/; revision=47618
2013-02-10 22:09:21 +00:00
Bill Meier 19ffe7eb4c Update a comment; tweak a RegEx.
svn path=/trunk/; revision=47612
2013-02-10 18:40:54 +00:00
Bill Meier 233fcd672f Remove blank lines separately after removing comments rather than as
part of the 'remove comments' regex.

Fixes a bug introduced in SVN #47583 which broke '#if 0' handling.


svn path=/trunk/; revision=47598
2013-02-09 22:14:13 +00:00
Bill Meier 404460c14d Cleanup: Ditch CamelCase; use braces around references.
svn path=/trunk/; revision=47585
2013-02-09 16:28:01 +00:00
Bill Meier 7b40629a16 Fix a syntax error which causes a compile error
(altho not in my version Cygwin Perl V5.14 for some reason).

svn path=/trunk/; revision=47584
2013-02-09 14:52:02 +00:00
Bill Meier 4c41fd5df9 Tweaks to RegEx usage for consistency and performance (and
to fix a monor bug or two).

svn path=/trunk/; revision=47583
2013-02-09 14:25:18 +00:00
Bill Meier f5dd71e30e Fix code to delete blank lines to remove all blank lines;
Update some Perl usage.

svn path=/trunk/; revision=47569
2013-02-08 16:25:46 +00:00
Bill Meier 1e64a82f02 Add addition test to reduce false positives for 'ERROR: NO ARRAY: '
Essentially:
 Detect when an hf_... var is effictively initialized
 via the use of proto_registrar_get_id_byname() or
 proto_get_id_by_filter_name() (instead of
 proto_register_field_array()).

svn path=/trunk/; revision=47542
2013-02-07 22:16:39 +00:00
Bill Meier 669e68dfde Add a hack to fix false positive 'unused ...' related to use of ..._add_oui().
svn path=/trunk/; revision=47536
2013-02-07 19:36:29 +00:00
Bill Meier 408e6aa279 Minor tweaks ...
svn path=/trunk/; revision=47533
2013-02-07 17:24:32 +00:00
Bill Meier 64e97d9ec5 Fix a few minor bugs;
Do some small tweaks for readability & consistency.

svn path=/trunk/; revision=47532
2013-02-07 17:17:21 +00:00
Bill Meier 29b72be420 Add checking to verify that global hf_... defs are referenced in hf[] entry in same file.
(Commented out for now since a few false positives are currently generated).

Fix a few minor bugs;
Tweak the calling sequences for various subs.


svn path=/trunk/; revision=47476
2013-02-04 20:06:46 +00:00
Bill Meier 7fa9cf9209 Improvements:
- Handle preprocessed (as well as original) .c source files.
  (Running checkhf on the source after it has been pre-processed
   should give few false positives).
- Remove blank lines, comments & quoted text strings before
   doing the hf_... tests: reduces false positives/negatives.

svn path=/trunk/; revision=47458
2013-02-03 22:12:33 +00:00
Bill Meier eeb90f99b7 Tweaks:
- Remove comments from the input string before checking hf[] entries;
- Remove code under '#if 0' before doing API checks.

svn path=/trunk/; revision=47447
2013-02-02 15:13:45 +00:00
Bill Meier d1ae197ae4 Re-implemention of checkhf.pl:
Main objective: reduce the number of false positives.

  (Committed as a patch to the original
   checkhf.pl written by Joerg Mayer so as to
   keep the history for the original program).


svn path=/trunk/; revision=47331
2013-01-28 22:23:32 +00:00
Bill Meier 7540ccc0ed Delete checkhf-v2.pl from the repository.
(It will be re-submitted as a patch to
update(replace) the existing checkhf.pl


svn path=/trunk/; revision=47330
2013-01-28 22:15:06 +00:00
Bill Meier 4f1488181b Re-implemention of checkhf.pl:
Main objective: reduce the number of false positives.
 Normal usage: the same as for checkhf.pl.

For now: named checkhf-v2.pl


svn path=/trunk/; revision=47326
2013-01-28 19:58:54 +00:00
Gerald Combs 3c66ac4b83 Forward-port r47305 from trunk-1.8:
------------------------------------------------------------------------
  r47305 | gerald | 2013-01-26 12:12:52 -0800 (Sat, 26 Jan 2013) | 6 lines
  Changed paths:
     M /trunk-1.8/tools/fuzz-test.sh

  Instead of setting resource limits on the fuzz-test.sh process itself,
  set limits on the TShark subprocess. This should hopefully take care
  of the strange fuzz failures we've seen lately.

  Reduce the maximum CPU time to 5 minutes while we're at it.
  ------------------------------------------------------------------------

svn path=/trunk/; revision=47307
2013-01-26 20:36:57 +00:00
Bill Meier be4c8badd8 Handle hf_... definitions which are not static;
For .../dissectors/(non-generated dissectors):
 Reduces the number of "unused" false positives (and
 adds about 2 different false positives).

svn path=/trunk/; revision=47280
2013-01-25 20:12:09 +00:00
Gilbert Ramirez 413e04d2b8 Update WiresharkXML.py to work with Python 2.7.
svn path=/trunk/; revision=47259
2013-01-24 18:16:32 +00:00
Jaap Keuter 6e1c54c8fd Fix for CID 761911-761984 and CID 761985-761994.
Try to convince Coverity that the passed in item pointer is appreciated,
but not used.
This time see if it pleases the Windows compiler too.

svn path=/trunk/; revision=47217
2013-01-22 22:07:44 +00:00
Anders Broman 332012288b Revert 47201 it does not compile on Windows.
svn path=/trunk/; revision=47208
2013-01-22 07:05:39 +00:00
Jaap Keuter 86dd0abcd3 Fix for CID 761911-761984 and CID 761985-761994.
Try to convince Coverity that the passed in item pointer is appreciated,
but not used.

svn path=/trunk/; revision=47201
2013-01-21 22:38:11 +00:00
Jaap Keuter 69489bc85a Try and see if we can suppress about half of the Coverity issues.
svn path=/trunk/; revision=47157
2013-01-18 23:25:22 +00:00
Guy Harris 971059b7f1 Add an RCS ID to the generated dissector.
Wireshark always expects there to be a config.h, so don't test
HAVE_CONFIG_H any more.

svn path=/trunk/; revision=47156
2013-01-18 22:14:07 +00:00
Evan Huus d8967afa61 Add -v for verbose valgrind output.
svn path=/trunk/; revision=47113
2013-01-16 14:02:30 +00:00
Jeff Morriss 99ce4232cb As suggested in comments in sl_alloc() and sl_free(): add a new environment
variable (WIRESHARK_DEBUG_USE_SLICES) which turns off the slab allocator and uses
g_slices instead (which can themselves be turned off by setting
G_SLICE=always-malloc).

This makes debugging problems in slab-allocated memory easier to find
(hopefully including https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8197 ).


Set WIRESHARK_DEBUG_USE_SLICES when running Valgrind on *shark.


Remove unused structure member: emem_chunk_t.org.

svn path=/trunk/; revision=47110
2013-01-16 03:34:29 +00:00
Gerald Combs aafa77c6f4 Try to show what condition triggered a failure.
svn path=/trunk/; revision=47079
2013-01-14 20:17:20 +00:00
Pascal Quantin 1ca9d5c2b3 Upgrade LPP dissector to v11.1.0 and modify extract_asn1_from_spec.pl to automatically get ASN.1 from spec
svn path=/trunk/; revision=47034
2013-01-11 19:31:15 +00:00
Evan Huus 5c57af2df2 When fuzz-testing with valgrind, run both with and without tree (like when
fuzz-testing without valgrind).

svn path=/trunk/; revision=46950
2013-01-05 14:27:37 +00:00
Alexis La Goutte 40a9c3a6bc TS Files is also XML Files
svn path=/trunk/; revision=46872
2012-12-31 14:10:07 +00:00
Jeff Morriss 3ad2d4961d Treat *.ui files as *.xml: also set svn:keywords property.
svn path=/trunk/; revision=46856
2012-12-30 04:16:44 +00:00
Evan Huus 5eacf33f1f Update wmem documentation for the new allocator.
Use the strict allocator when fuzzing (at least until the fuzz-bot starts
running everything under valgrind).

svn path=/trunk/; revision=46829
2012-12-28 17:09:07 +00:00
Evan Huus 442b61d0a4 Change the format of the environment variable slightly to allow overriding
allocator choice to use any specific allocator, not just simple.

svn path=/trunk/; revision=46816
2012-12-27 22:51:33 +00:00
Guy Harris c1245c6b32 Change wireshark_gen.py to make the operation argument to routines a
"const char *", as it is now expected to be.  Regenerate the dissectors.

Update the URL for OmniOrb.

In README.parlay, use idl2wrs in the sample command.

svn path=/trunk/; revision=46765
2012-12-26 10:28:03 +00:00
Gerald Combs a5d5162826 Qt: Implement packet comments. Fix packet detail updates.
GTK+: Shorten the packet comment menu item name.  Remove a couple of
unneeded includes.

Both: Add an arbitrary 20 MB limit when fetching all packet comments.
Use a color from the Tango palette for comments.

svn path=/trunk/; revision=46709
2012-12-23 04:37:58 +00:00
Anders Broman acab4fe903 Use the new bundle
svn path=/trunk/; revision=46613
2012-12-19 06:52:56 +00:00
Bill Meier 919c192780 Let's try using the new Win32 GTK2 bundle 2.24.14 (as suggested by Anders).
svn path=/trunk/; revision=46612
2012-12-19 04:44:01 +00:00
Evan Huus 5cf858ec52 Dispatch all allocator creations through a single function using an enum to
determine the desired type. This has two advantages over the old way:
 - just one environment variable for valgrind to override in order to guarantee
   that ALL allocators use memory it can track, and just one place to check that
   variable
 - allocator owners no longer have to include headers specific to their
   allocator, allowing them to change allocators without adjusting all their
   #includes

svn path=/trunk/; revision=46604
2012-12-19 00:43:36 +00:00
Jeff Morriss 02a69849b7 Don't do proto_tree_add_ether(..., tvb_get_ptr(...)), just use proto_tree_add_item().
svn path=/trunk/; revision=46598
2012-12-18 22:29:11 +00:00
Jeff Morriss 47efce2889 Move setting of WIRESHARK_ABORT_ON_DISSECTOR_BUG together with other Wireshark-specific variables (instead of with the MacOS-specific variables).
svn path=/trunk/; revision=46514
2012-12-12 02:22:14 +00:00
Pascal Quantin 96f889dfd6 Update the User's Guide to 1.9
svn path=/trunk/; revision=46503
2012-12-11 22:23:44 +00:00
Pascal Quantin 843864684c Update the User's Guide to 1.8
svn path=/trunk/; revision=46463
2012-12-07 22:40:04 +00:00
Gerald Combs 739c90f0ad Move a lot of common fuzz-test and randpkt-test code to its own file
(test-common.sh). Add build information to the error output as suggested
in http://www.wireshark.org/lists/wireshark-dev/201212/msg00037.html

svn path=/trunk/; revision=46446
2012-12-07 17:57:09 +00:00
Pascal Quantin 57f7171c87 Update USB vendor and product ids and escape non ASCII characters
svn path=/trunk/; revision=46398
2012-12-05 12:56:41 +00:00
Evan Huus f72aa597c7 Make the new -T option not overwrite the other options, so it can
be used in conjuction with -2 et al.

svn path=/trunk/; revision=46362
2012-12-04 00:05:58 +00:00
Jeff Morriss a41c5abab1 Add SET_ADDRESS and SET_ADDRESS_HF to the list of APIs we (may--if we uncomment the code) check for being called with tvb_get_ptr().
svn path=/trunk/; revision=46326
2012-12-02 05:05:04 +00:00