aboutsummaryrefslogtreecommitdiffstats
path: root/epan/exntest.c
AgeCommit message (Collapse)AuthorFilesLines
2016-07-15exntest.c: Create local functions to handle "nesting" TRY/CATCH macros to ↵Michael Mann1-36/+52
fix shadow warnings. Found by VS Code Analysis, although it appears it's been discovered before and warranted the DIAG_ON/OFF macros. Those have been removed as this is believed to be a good solution. Change-Id: I376d816855366d55affe7b9e4b8616509aa4e7fe Reviewed-on: https://code.wireshark.org/review/16447 Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-04-04Include ws_diag_control.h in config.hJoão Valverde1-3/+2
Change-Id: Ia394071710ecda3b0e6686a51fbca45a8ff20317 Reviewed-on: https://code.wireshark.org/review/14749 Petri-Dish: João Valverde <j@v6e.pt> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: João Valverde <j@v6e.pt>
2015-02-24Revert "exntest: Fix Dead Store (Dead assignement/Dead increment) warning ↵Guy Harris1-1/+3
found by Clang" This reverts commit f9fc25241ca0c735c0945bebf04669f17c3ffbff. Apparently, clang is wrong about those increments being dead, as the tests done by exntest fail as a result of this change. Perhaps it doesn't understand setjmp/longjmp. Change-Id: I248fba972e52bcbc97a228777139ca22a835f4b6 Reviewed-on: https://code.wireshark.org/review/7347 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-02-24exntest: Fix Dead Store (Dead assignement/Dead increment) warning found by ClangAlexis La Goutte1-3/+1
Change-Id: I91ec67e8c2168dd9a93c3894abdf304c0a75845d Reviewed-on: https://code.wireshark.org/review/7263 Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-01-06Fix GCC pragma.Gerald Combs1-6/+2
Fix "error: #pragma GCC diagnostic not allowed inside functions". Change-Id: Iaa7e39ac46975f00bc337b97875ba8b77295064a Reviewed-on: https://code.wireshark.org/review/6355 Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-01-06Try to suppress clang warnings in exntest.Gerald Combs1-1/+8
Nested TRYs result in: warning: declaration shadows a local variable Change-Id: Ifaa7baebde0ea4c18be5a53ab7e7964e84716496 Reviewed-on: https://code.wireshark.org/review/6347 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
2014-10-10Add editor modelines; Adjust whitespace as needed.Bill Meier1-0/+13
Change-Id: I3dc57f4c2ca57585103e3b71503ac4c332903e50 Reviewed-on: https://code.wireshark.org/review/4594 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-04-18Add to tvbuffs a "fragment length" field; if the tvbuff represents theGuy Harris1-0/+8
first fragment of a non-reassembled packet, and we know the length the packet would have if it were reassembled, this field holds the length of the fragment, and the "reported length" field shows the length the packet would have if it were reassembled, so going past the end of the fragment but staying within the length of the reassembled packet can be reported as "dissection would have worked if the packet had been reassembled" rather than "the packet is too short, so it was probably malformed". Add a FragmentBoundsError exception, thrown in the "dissection would have worked if the packet had been reassembled" case. Add a new tvb_new_subset_length_fragment() routine to create a new subset tvb with specified fragment and reported lengths. Use it in the CLNP dissector. Add some more sanity checks in the CLNP dissector. svn path=/trunk/; revision=48917
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2011-05-12Include config.h (for WS_MSVC_NORETURN) and g_gnuc.h (for G_GNUC_NORETURN)Jeff Morriss1-3/+4
svn path=/trunk/; revision=37077
2005-08-04Exception handling fixes, and a fix to packet-frame.c,Gilbert Ramirez1-0/+202
from Richard van der Hoff. svn path=/trunk/; revision=15205