Commit Graph

61245 Commits

Author SHA1 Message Date
Peter Wu 33f8f48bc0 GTK: fix infinite loop at startup
Add the tap timer after validating all preferences, otherwise a zero
timeout will result in an infinite loop, visible by a splash screen that
never goes away.

Change-Id: I180a123ac2cc7774356e17f1f1d4dcaf38f252b4
Reviewed-on: https://code.wireshark.org/review/13156
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-10 08:10:34 +00:00
Peter Wu 174dc98892 Qt: fix infinite loop when gui_recent_files_count_max is negative
Change-Id: I7cfddd865ebe0cd01230e19bf20fee7964c40324
Reviewed-on: https://code.wireshark.org/review/13155
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-10 08:07:31 +00:00
Graham Bloice 25bfbaa0cf CMake: Fix docbook dependencies
unset accumulator variables after use so that successive uses are
not carried forward.
add MAIN_DEPENDENCY for chm generation so that it is correctly
rebuilt when the sources change.

Change-Id: I3b0c47a775f398346cc3a3bbd39d4fab2b0ec000
Reviewed-on: https://code.wireshark.org/review/13160
Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
Petri-Dish: Graham Bloice <graham.bloice@trihedral.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2016-01-10 07:04:11 +00:00
Paul Offord 9c3044e164 GTK: plugin_if_goto_frame can cause an Access Violation
This is a fix for bug 11989.  This patch fixes the problem for the
GTK variant of Wireshark and matches the Qt bug reported by
bug 11810 and fixed by change 12306.

Bug: 11989
Change-Id: Ib9af8ba745394ebd31825003361ec637c45d75d6
Reviewed-on: https://code.wireshark.org/review/13152
Petri-Dish: Roland Knall <rknall@gmail.com>
Reviewed-by: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
2016-01-10 07:02:23 +00:00
Graham Bloice 2c830bbb6b docs: Updates to Developers Guide
Update link to Gerrit.
Update Windows Git section with info on install options
and updated links.
Fix CMake section header level.

Change-Id: I24769534e07e79a0608201e103cb8f1b8625cf86
Reviewed-on: https://code.wireshark.org/review/13158
Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
2016-01-09 22:05:36 +00:00
Peter Wu 41e93ead25 checkAPIs: remove false positive in shadow check
" strlen (" would match the shadow regex due to backtracking. Disable
backtracking with the "possessive quantifier".

Change-Id: If5d307fd61f252c41ad6d9b6104d2add1dfa63ae
Reviewed-on: https://code.wireshark.org/review/13157
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2016-01-09 20:02:01 +00:00
Martin Kaiser 859e1ee1d5 [dcm] set a reasonable return value if we need more data
in other similar cases, we return tvb_captured_length(tvb)
do this here as well instead of returning TRUE where we should return a number

Change-Id: Ifafdb7011256100d127033c0a43d100525f6a42b
Reviewed-on: https://code.wireshark.org/review/13084
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2016-01-09 17:04:16 +00:00
Martin Kaiser cbbb574929 [quake] remove a bunch of unnecessary if (tree) checks
Change-Id: Id2f2597893daf527766ed9ae4560e4ef970ff426
Reviewed-on: https://code.wireshark.org/review/13151
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2016-01-09 15:22:57 +00:00
Martin Kaiser 2a801b4829 [aeron] simplify aeron_frame_info_setup()
exit straight away if the packet was already processed or if we're
missing some data
avoid nested if clauses that make the code hard to read

Change-Id: Ied6d575f9498ab98623cd862a9d4b9dd8ad7e0b4
Reviewed-on: https://code.wireshark.org/review/13146
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2016-01-09 15:01:55 +00:00
Aditya Jain e530a09a12 Adding following dissectors for HVAC clusters for Zigbee Protocol:
1. Pump Configuration and Control
2. Fan Control
3. Dehumidification Control
4. Thermostat User Interface Configuration

Change-Id: I854f992a0c6e8a5714f308e97f30e7bc26fb73fc
Reviewed-on: https://code.wireshark.org/review/13102
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-09 09:56:22 +00:00
Alexis La Goutte ce979903fd Add lempar to pre-commit ignore list
Change-Id: I4ad9b1dadfdb51ad750cc61782eca69125989b55
Reviewed-on: https://code.wireshark.org/review/13144
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: João Valverde <j@v6e.pt>
2016-01-09 09:21:15 +00:00
Guy Harris 189d859337 No need to include <sys/types.h>.
(If it turns out that there is a need, I'll fix the code to remove the
need.)

Use BASE_NONE for string fields, and reformat the hf[] array a bit.

Change-Id: I62805e3054266589c3fa25a0047ea3e7114484d6
Reviewed-on: https://code.wireshark.org/review/13141
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2016-01-09 07:19:34 +00:00
Guy Harris 9b83ae856f Get rid of unused variable.
Change-Id: Ic9104ddba17797a3e541cebd4326035e874b27de
Reviewed-on: https://code.wireshark.org/review/13143
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-09 03:48:27 +00:00
Guy Harris 835a44d084 Get rid of unused variable.
Change-Id: I7b1f92ae5f8e2d6c2ded8aa4afce533e807e3c78
Reviewed-on: https://code.wireshark.org/review/13142
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-09 03:09:50 +00:00
Guy Harris 241c0da314 Get rid of trailing white space.
Change-Id: Icc086c9dc1215115dd2a2ea4dbf7027237fe892e
Reviewed-on: https://code.wireshark.org/review/13140
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-09 02:27:52 +00:00
Guy Harris c67c6e8f30 Add routines to add an item and return the item's real length.
proto_item_get_len() is *not* guaranteed to return a correct value.
Even if there's a non-null tree item, it might be pointing to a "faked"
item; it really shouldn't be used.

So add proto_tree_add_item_ret_length() and
proto_tree_add_item_new_ret_length(), which calculate the real length
themselves and return it through a pointer.

Fix as many places as we straightforwardly can to use them rather than
to use proto_item_get_len().  (There's a Lua API for
proto_item_get_len(), so we keep it around, but we should add Lua APIs
for the new routines, and deprecate the old API.)

Fix ptvcursor_add() to do the same thing that
proto_tree_add_item_ret_length() and
proto_tree_add_item_new_ret_length() do.

Split the TRY_TO_FAKE_THIS_ITEM macros into a macro to check for the
tree being null and to try to fake the item.  We don't always use the
former macro, as we might need to do more than just return NULL if the
incoming tree is null (for example, calculating the item's real length
and using it...).

new_field_info() never returns NULL; remove checks for it.  The check
for a null tree is done before the calls to new_field_info().

Change-Id: I002a218d1f810c73e0de837e0ac6ebcde21bacec
Reviewed-on: https://code.wireshark.org/review/13139
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-09 02:26:06 +00:00
Gerald Combs 628c068a94 Qt: Save the default capture device name.
Make sure we save the device name in capture.device. This should fix
the default device selection in the welcome screen on Windows.

Change-Id: I19337cf2813f3b5aba75228e855dad0a0f5e0f78
Reviewed-on: https://code.wireshark.org/review/13138
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2016-01-09 01:33:54 +00:00
Gerald Combs 8a23da3fd2 Revert "Qt: Try to fix Main Welcome Interfaces List Scrollbar"
Instead of calling InterfaceTree::reset (which clears our selection)
when we resize, just pass our resize event to QTreeWidget.

Additionally, select our default interface using setCurrentItem. This
fixes behavior broken in gb152ca3.

This reverts commit 7baac67149.

Bug: 11733
Change-Id: I58855de38561fcb6984273ae3910c0dfcda04e69
Reviewed-on: https://code.wireshark.org/review/13135
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2016-01-08 22:46:09 +00:00
Gerald Combs 308b653da2 Qt: Queue up redissection.
Make the WiresharkApplication::packetDissectionChanged →
MainWindow::redissectPackets connection queued rather than direct.
redissectPackets eventually calls update_progress_dlg, which processes
UI events.

This should keep the profile dialog from destroying itself prematurely
in a nested event loop when the user hits "OK".

Bug: 11979
Change-Id: I7276e08c1911708c3aca5ff05ab6a40bfc336add
Reviewed-on: https://code.wireshark.org/review/13134
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2016-01-08 21:44:48 +00:00
moshekaplan cd7026951b Fix a lot of typos and misspellings
Change-Id: I8512cfa1d424f82a873a0e0e1d22c7b075fdd7f3
Reviewed-on: https://code.wireshark.org/review/13069
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-01-08 20:04:56 +00:00
Alexis La Goutte c1bcbb6eee LAT: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: Id8acd15334650ce07de9991fadf3a0c8c09cddcc
Reviewed-on: https://code.wireshark.org/review/13126
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-01-08 19:15:00 +00:00
Gerald Combs 0ce9ac4137 Add a Busy status to SyntaxLineEdit.
For CaptureFilterEdit it's possible to have an indeterminate state while
we're waiting on name resolution. Add a Busy status to SyntaxLineEdit
and set the text color to a mix of the normal foreground and background
colors (gray on most platforms).

Make the Busy state valid so that we don't have to wait on an
annoyingly-long name resolution to start capturing.

Update the global capture option filters using the main welcome capture
filter when we start a capture instead of when we've finished checking
the filter syntax.

Connect the CaptureFilterEdit returnPressed signal no matter what so
that we can start a capture by pressing return in the welcome screen
CaptureFilterEdit.

Add a fake resolution timeout to the CaptureFilterSyntaxWorker debug
code to make testing the different states easier.

Bug: 11950
Change-Id: I0cf01c0fbc0dd8065cdf5a91f1d6b224291b1ce6
Reviewed-on: https://code.wireshark.org/review/13110
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2016-01-08 17:53:28 +00:00
João Valverde 35a79ffebb Fix warning for epan/tap.c [-Wpedantic]
Disable ISO C compatibility warning when loading an external
symbol.

Change-Id: I85e0be1664a4f77983636a4bab559af2f79321aa
Reviewed-on: https://code.wireshark.org/review/13132
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2016-01-08 16:08:12 +00:00
Pascal Quantin af6768d3ef QT: add same warning as GTK when trying to save a decoded RTP stream that is not alaw/ulaw
Change-Id: Ia11e58a20c879d1ca3ead8479f8082e204d92caf
Reviewed-on: https://code.wireshark.org/review/13131
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2016-01-08 15:54:27 +00:00
João Valverde d3e480ac76 Fix warnings for epan/prefs.c [-Wcast-qual]
Change-Id: I86032d624ee37edc86a868eb2aaaffce81a8807b
Reviewed-on: https://code.wireshark.org/review/12719
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: João Valverde <j@v6e.pt>
2016-01-08 15:28:45 +00:00
Darshan Nevgi ac3fc7c1e0 Adding BINARY INPUT,BINARY OUTPUT,BINARY Value Clusters
Change-Id: Ib16c83a300e285eac8e7f895ff4a062175af0f09
Reviewed-on: https://code.wireshark.org/review/12942
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-08 15:12:14 +00:00
Pascal Quantin 8884edbbd6 NFS: fix crash when activating file_name_snooping option
gf5340b2 introduced a value destroy function.
When transfering a given value from nfs_name_snoop_unmatched to nfs_name_snoop_matched hash map, do not free the value automatically

Bug: 11972
Change-Id: I8c4e0db07084b041baf73ccf4d0788248574a9d8
Reviewed-on: https://code.wireshark.org/review/13115
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2016-01-08 12:12:21 +00:00
Guy Harris 895d07f7be Again, command values are in decimal, not hex, in DEC's LAT spec.
Change-Id: I693eabbba3f9140bccb9a5e490633ba139f13193
Reviewed-on: https://code.wireshark.org/review/13129
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-08 10:53:25 +00:00
Guy Harris 8e49f590bf Remove commented-out table of Ethertypes.
They're just Ethertypes, so the Ethertype table in the Ethertype
dissector should suffice.

Change-Id: I5ee8ddf6b1a449495d827bdf4a3e39ebdd9030cb
Reviewed-on: https://code.wireshark.org/review/13128
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-08 10:39:39 +00:00
Alexis La Goutte 054c107da5 LAT: Add LAT Protocol to release note
Change-Id: I1902685094e531ad876bccfa2af21bd546cba050
Reviewed-on: https://code.wireshark.org/review/13125
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-08 10:06:36 +00:00
Guy Harris d3023f1a9c The DEC spec gives command codes in decimal.
Change-Id: I938152dc6f3ee8b17e4c1463249d326efd29266f
Reviewed-on: https://code.wireshark.org/review/13127
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-08 10:02:10 +00:00
Alexis La Goutte f12dd18746 LAT: fix indent and modelines
Change-Id: Ic6086d0dcbda425aee362d31b1b939d50ed85011
Reviewed-on: https://code.wireshark.org/review/13123
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-08 09:58:58 +00:00
Guy Harris fbe9200762 Match DEC's spec.
More to dissect, if somebody has the time and energy.

Change-Id: I27eca69f141ec391b48d03398f54a8c4b6ecf39f
Reviewed-on: https://code.wireshark.org/review/13122
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-08 09:42:46 +00:00
Guy Harris fcc5c527ad Update the copyright.
As I said, 15 years. :-)

Change-Id: Iaca3805547b0a822d160b87cb2b8ff453839db00
Reviewed-on: https://code.wireshark.org/review/13120
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-08 08:13:03 +00:00
Guy Harris d74f15068b Remove trailing whitespace.
Change-Id: Ic115862d4bf9f2847c768cd539d83883e32eeed2
Reviewed-on: https://code.wireshark.org/review/13119
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-08 05:15:48 +00:00
Guy Harris 72b0041ca8 LAT dissector.
Only 15 years later:

	https://www.wireshark.org/lists/ethereal-dev/200010/msg00070.html

as I clean up stuff I've had lying around for a while.

LAT spec found at bitsavers.org; further work can use that.

Change-Id: I486e4ab1ffb74d6e0b323202514cc352d63e9eef
Reviewed-on: https://code.wireshark.org/review/13118
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-08 05:14:16 +00:00
Guy Harris ff08c11375 Note that sometimes the packet time stamps are relative to the start time.
Change-Id: Ie248559cd924db611190a73e3f043e047421ab7f
Reviewed-on: https://code.wireshark.org/review/13117
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-08 04:22:58 +00:00
Guy Harris 13c633357b Improve an error message.
Change-Id: I9c406bbd146ef525e5348f620c606d1296d3bd10
Reviewed-on: https://code.wireshark.org/review/13116
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-08 03:21:59 +00:00
João Valverde cbc36cbd97 Remove constness from bytestring_to_str() [-Wcast-qual]
Change-Id: I7f942787dfdc4f76dd0ad5111d1eb528b20f0ba9
Reviewed-on: https://code.wireshark.org/review/13011
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: João Valverde <j@v6e.pt>
2016-01-07 22:40:30 +00:00
Guy Harris 94f499bb11 dBm signal strength is signed; report it as such in the RSSI column.
Change-Id: Ifc0516f0229a7bedd953e9a81beb300df1c4208c
Reviewed-on: https://code.wireshark.org/review/13113
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-07 21:09:33 +00:00
Roland Knall 7423a91e81 extcap: Documentation for the new features
Add documentation for regular expression usage, required
 and fileextension arguments

Change-Id: I9a27c4263a87774cb997a6f4e1f8783a69d818df
Reviewed-on: https://code.wireshark.org/review/12949
Reviewed-by: Roland Knall <rknall@gmail.com>
2016-01-07 19:30:07 +00:00
João Valverde cac0ab63ee lemon: Fix warnings [-Wpedantic]
Change-Id: I7b350b2c4de5f86de24c8f2309016f3de7af8516
Reviewed-on: https://code.wireshark.org/review/12959
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-01-07 15:52:24 +00:00
Juanjo Martin b178e9cc05 RTPS: Fixed DATA_BATCH dissection.
The DATA_BATCH dissection contained wrong proto_tree arguments in
a few calls. Also, changed the size of a tree from -1 to the actual
size.

Change-Id: I5f34869a6d231a0bd74c815499b627fe329b6eb0
Reviewed-on: https://code.wireshark.org/review/13059
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-07 12:37:54 +00:00
Stig Bjørlykke 5dcce344ac Qt: Sort traffic table default protos
When changing conversation types in Conversations and endpoint types
in Endpoints the tabs will be arranged alphabetically, so ensure that
the default protos also are alphabetically.

Change-Id: Ib0e8ffb744f63867e93282b7a81b1c11b0ee3dc4
Reviewed-on: https://code.wireshark.org/review/13107
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2016-01-07 12:35:55 +00:00
AndersBroman f3ae6c9c5c [Diameter] Add Data from 3GPP TS 29.344 V13.0.0 (2015-12)
Update resultcodes from IANA.

Change-Id: Ib71cc01a772d651d734039344c0feff394a61351
Reviewed-on: https://code.wireshark.org/review/13106
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-07 12:35:42 +00:00
Martin Kaiser 20ca6d0a11 [dcm] don't THROW() an exception from a dissector
in this case, we can simply exit the loop if we see an invalid pdu length

Change-Id: I818736f25d15d9054ea66b4670a5362b557b0e9f
Reviewed-on: https://code.wireshark.org/review/13083
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-07 11:49:06 +00:00
Sean O. Stalley 7c5b0d427a mausb: Add dissection of ClearTransfers Req & Resp
Add dissection for two new packets types added in the MA USB v1.0a
Specification.

Change-Id: Ie693f5d721a446454cc927451b69859e1992ddb3
Reviewed-on: https://code.wireshark.org/review/13081
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-07 11:46:52 +00:00
Martin Kaiser 0c7eb4a4f4 [dcom] don't THROW() an exception from a dissector
try to clean up the use of signed vs unsigned data types
in dissect_dcom_BSTR without affecting any other function:

offsets are gint
if we have to add a guint32 to an offset, do a range check before adding
if we see an overflow, return the number of bytes consumed up to that point

Change-Id: Ib06c19fee8e3477e07b190ca26743891a5b24c3d
Reviewed-on: https://code.wireshark.org/review/13082
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-07 11:46:17 +00:00
Guy Harris ccdb8be0e9 Clean up indentation.
Change-Id: Ica6615ef80867e911a1244a8a54411519033b275
Reviewed-on: https://code.wireshark.org/review/13105
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-07 09:41:14 +00:00
Guy Harris e687b0d382 Expand a comment.
Change-Id: Id928258326a1bd4512d88fe0f74b0a34262da56a
Reviewed-on: https://code.wireshark.org/review/13104
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-07 08:26:54 +00:00