aboutsummaryrefslogtreecommitdiffstats
path: root/epan/except.c
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup rcsidsKovarththanan Rajaratnam2009-10-061-16/+12
| | | | svn path=/trunk/; revision=30369
* As pointed out by Guy, we should probably explain why the gulong -> size_t ↵Kovarththanan Rajaratnam2009-08-171-0/+8
| | | | | | cast is 'safe' svn path=/trunk/; revision=29458
* Add proper type cast.Kovarththanan Rajaratnam2009-08-171-1/+1
| | | | | | Thanks to Martin for reporting this. svn path=/trunk/; revision=29451
* Switch over to using GLib's g_malloc/g_free in the name of consistency.Kovarththanan Rajaratnam2009-08-151-2/+2
| | | | svn path=/trunk/; revision=29430
* From Kovarththanan Rajaratnam via bug 3506:Gerald Combs2009-07-301-5/+5
| | | | | | | | | | The exception throwing code in except.c/h should be annotated with "noreturn" to indicate that they never return. Running static analysis on Wireshark without this annotation causes a lot of false positives since these analyzers assume that the exception handling code are ordinary functions that will eventually return. svn path=/trunk/; revision=29246
* Include <glib.h> to declare g_vsnprintf().Guy Harris2007-12-051-0/+3
| | | | svn path=/trunk/; revision=23768
* Use g_vsnprintf(), not vsprintf(), for safety's sake.Guy Harris2007-12-051-1/+1
| | | | svn path=/trunk/; revision=23766
* Win32: call an existing debugger if a DissectorError is thrown. This ↵Ulf Lamping2006-01-221-0/+13
| | | | | | | | preserves the call stack of the bug making debugging much easier. This can't be done in every error throwing case, as e.g. throwing a ReportedBoundsError might happen a lot even if no bugs are involved. Anyway, extending this to other errors can be done manually while debugging. svn path=/trunk/; revision=17072
* get rid of warnings about qualifier discardingTomas Kukosa2005-09-271-3/+3
| | | | svn path=/trunk/; revision=16017
* Support throwing an exception with a null message pointer, and have theGuy Harris2005-08-061-10/+43
| | | | | | | | | | | | | | | | | message not be const (as we generate messages with "g_strdup_sprintf()", which means they need to be freed; using a null message means that we don't have to use a special string for exceptions with no message, and don't have to worry about not freeing that). Have THROW() throw an exception with a null message pointer. (This means that you crash if you throw DissectorError with THROW(). Don't do that - it means you don't get a more detailed explanation of the dissector problem. Use the DISSECTOR_ASSERT, etc. macros in epan/proto.h instead.) Free the exception message for DissectorError, as it's mallocated. svn path=/trunk/; revision=15250
* Remove some unneeded backslashes.Gerald Combs2004-12-291-3/+3
| | | | svn path=/trunk/; revision=12857
* Remove some macros that were making the "splint" utility throw a fit.Gerald Combs2004-12-281-60/+47
| | | | svn path=/trunk/; revision=12849
* Set the svn:eol-style property on all text files to "native", so thatGuy Harris2004-07-181-2/+2
| | | | | | | | | they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
* Removed trailing whitespaces from .h and .c files using theJörg Mayer2002-08-281-4/+4
| | | | | | | winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6116
* Fix for Kazlib exception code:Gilbert Ramirez2001-07-271-4/+4
| | | | | | | | | | | | | | | Defect number: 0011 Date: Jul 26 2001 Releases of Kazlib affected: 1.10 through 1.19 Status: Fixed in 1.20 Modules affected: except.c Description: Members of the except_t structure needed to be declared volatile because the structure is automatically allocated in the except macro, modified after a setjmp() takes place, and accessed after control returns via longjmp. Solution: Upgrade to 1.20 or backpatch the fix. svn path=/trunk/; revision=3793
* First step in moving core Ethereal routines to libepan.Gilbert Ramirez2000-09-271-0/+415
svn path=/trunk/; revision=2458