wireshark/debian
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
..
patches debian: Sync patches with Debian 2015-12-16 05:34:22 +00:00
po [Automatic update for 2015-10-25] 2015-10-25 15:10:51 +00:00
source .deb package format is 'native' 2014-06-08 15:33:29 +00:00
README.Debian debian: Add note to README.Debian to log in again to be able to capture packets 2015-11-11 04:41:59 +00:00
README.Debian.security Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
changelog Initialize 2.1. 2015-10-05 20:11:12 +00:00
compat Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
control debian: Recommend libqt5multimedia5-plugins for wireshark-qt 2015-12-29 07:47:19 +00:00
copyright Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
dirs Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
ethereal-common.NEWS Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
geoip_db_paths Use system's GeoIP database by default on Debian 2015-08-19 19:13:26 +00:00
headers-check.c Add GPLv2+ license header to headers-check.c as per private email from the 2014-06-08 17:51:58 +00:00
libwireshark-data.install Use system's GeoIP database by default on Debian 2015-08-19 19:13:26 +00:00
libwireshark-dev.install Refactor GUI dependencies out of color_filters.[ch] and move it to epan directory. 2015-12-28 18:33:41 +00:00
libwireshark0.install Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
libwireshark0.symbols Add routines to add an item and return the item's real length. 2016-01-09 02:26:06 +00:00
libwiretap-dev.install Don't ship libfiletap in the .deb packages yet 2014-06-08 15:33:05 +00:00
libwiretap0.docs Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
libwiretap0.install Don't ship libfiletap in the .deb packages yet 2014-06-08 15:33:05 +00:00
libwiretap0.symbols Make routines used only within wiretap/merge.c static. 2015-11-11 08:06:24 +00:00
libwscodecs0.install Change codecs from static to dynamic library 2015-12-03 23:54:49 +00:00
libwscodecs0.symbols Change codecs from static to dynamic library 2015-12-03 23:54:49 +00:00
libwsutil-dev.install Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
libwsutil0.install Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
libwsutil0.symbols New 2.0 symbols. 2015-11-10 21:54:05 +00:00
license-text-about-dialog Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
postinst
rules debian: Fix .deb package generation on wheezy 2015-12-18 00:04:00 +00:00
templates Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
tshark.docs Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
tshark.install Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
tshark.manpages Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
wireshark-common.config debian: Merge multiple small packaging fixes from Debian 2015-12-06 20:35:54 +00:00
wireshark-common.install debian: Move icon and mime info file to wireshark-common 2015-11-11 04:47:30 +00:00
wireshark-common.manpages extcap: add randpktdump, a random packet generator. 2015-12-22 12:24:16 +00:00
wireshark-common.postinst debian: Finish postinst of wireshark-common even when wireshark group is a user group 2015-11-11 04:43:05 +00:00
wireshark-common.postrm Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
wireshark-dev.docs Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
wireshark-dev.install Use LocatePythonModule to find make-dissector-reg.py in order to make UseMakeDissectorReg.cmake more generally (out-of-source) usable. 2014-12-18 07:42:39 +00:00
wireshark-dev.manpages Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
wireshark-dev.prerm Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
wireshark-doc.docs debian: Don't ship unused duplicated images for guides 2015-11-17 19:14:20 +00:00
wireshark-gtk.docs Qt → wireshark. GTK+ → wireshark-gtk. 2014-09-02 15:39:17 +00:00
wireshark-gtk.install debian: Move icon and mime info file to wireshark-common 2015-11-11 04:47:30 +00:00
wireshark-qt.docs Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
wireshark-qt.install debian: Move icon and mime info file to wireshark-common 2015-11-11 04:47:30 +00:00
wireshark-qt.manpages debian: Ship wireshark.1 in the package we ship /usr/bin/wireshark 2015-11-11 04:44:15 +00:00

README.Debian.security

 Handling security fixes in source package wireshark

Wireshark is a network protocol analyzer and it's ability to perform deep
packet inspection in live traffic may encourage users to use Wireshark/Tshark
as a part of an intrusion detection or traffic monitoring system.
In that case, please note that Wireshark/Tshark may contain remotely
triggerable bugs causing crashes or allowing code injection.

Bugs allowing code injection will be fixed in regular Debian Security
Advisories, but fixes for pure crash bugs may be delayed.

 -- Balint Reczey <balint@balintreczey.hu> Fri, 10 Jul 2009 15:38:33 +0200