wireshark/debian
Peter Wu 4f3646fe62 Fix handling of invalid UAT items
If the UAT file failed a field check, then the user_data pointer may be
empty. As a result uat_save() triggers an invalid write.

(Discovered while working with a dfilter_macros file having duplicate
names for bug 10957, caught by ASAN.)

The second issue fixed in this patch is that the validity of an item is
only calculated when a new record is added. So even if the user edits
the UAT and makes the entry valid, it would not be saved. This is solved
by adding a new uat_update_record() function which got wires up into GTK
and Qt.

Some open-coded g_array_index and UAT[_USER]_INDEX_PTR are also
converted.

Even after this patch, Qt has some issues with UAT handling. In
particular, it saves new, but empty/invalid, items. It also it does not
check individual fields when saving all fields (unlike Gtk). This patch
focused on getting Gtk fixed first so ignores those existing issues.

Change-Id: Ia35cfe9d2b793c65144ae7e29a1ed706b6668d99
Reviewed-on: https://code.wireshark.org/review/7120
Petri-Dish: Michael Mann <mmann78@netscape.net>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-02-15 23:52:24 +00:00
..
patches CMake: Make it easier to generate the release notes & NEWS. 2014-12-11 21:41:44 +00:00
po Fix Wireshark's name in Vietnamese translation 2014-06-08 19:19:48 +00:00
source .deb package format is 'native' 2014-06-08 15:33:29 +00:00
README.Debian Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
README.Debian.security Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
changelog 1.99.2 → 1.99.3. 2015-02-04 21:03:24 +00:00
compat Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
control Add missing build-dependencies for the Debian package 2014-12-08 23:21:32 +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
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 Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
libwireshark-dev.install Rename and move ui/stat_menu.h to epan/stat_groups.h. 2014-07-03 20:30:42 +00:00
libwireshark0.install Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
libwireshark0.symbols Fix handling of invalid UAT items 2015-02-15 23:52:24 +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 Resync Debian symbols 2014-12-17 22:08:11 +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 Combine SSE and pre-compiled patterns for faster pbrk 2015-02-11 09:14:50 +00:00
license-text-about-dialog Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
postinst
rules 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
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 Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
wireshark-common.install Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
wireshark-common.manpages Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
wireshark-common.postinst Sync .deb packaging from Debian 2014-06-08 15:32:10 +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 Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
wireshark-gtk.docs Qt → wireshark. GTK+ → wireshark-gtk. 2014-09-02 15:39:17 +00:00
wireshark-gtk.install Qt → wireshark. GTK+ → wireshark-gtk. 2014-09-02 15:39:17 +00:00
wireshark-qt.docs Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
wireshark-qt.install Qt → wireshark. GTK+ → wireshark-gtk. 2014-09-02 15:39:17 +00:00
wireshark.manpages Sync .deb packaging from Debian 2014-06-08 15:32:10 +00:00
wireshark.menu Resurrect wsicon32.xpm using 'svn cp' then update it based on 2013-03-29 15:44:14 +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