Commit Graph

14970 Commits

Author SHA1 Message Date
Guy Harris 4889bace3d Fix a typo.
svn path=/trunk/; revision=15285
2005-08-10 19:38:04 +00:00
Ulf Lamping 3e137afdc5 more snprintf() -> g_snprintf() replacements
svn path=/trunk/; revision=15284
2005-08-10 19:37:29 +00:00
Ulf Lamping c38d160321 don't warn the user about the WinPcap 3.1 release version as being unknown
svn path=/trunk/; revision=15283
2005-08-10 19:34:09 +00:00
Gerald Combs 4e4aa78bcc Remove proprietary information at the author's request.
svn path=/trunk/; revision=15282
2005-08-10 19:31:21 +00:00
Gerald Combs 4744466e97 ep_tvb_get_string -> tvb_get_ephemeral_string
svn path=/trunk/; revision=15281
2005-08-10 19:28:08 +00:00
Gerald Combs 560b1be060 Add an item for the SLIMP3 overflow.
svn path=/trunk/; revision=15280
2005-08-10 18:54:30 +00:00
Gerald Combs db28b74a97 Don't overflow a buffer. This might fix bug 327.
Don't print non-pritable characters.

svn path=/trunk/; revision=15279
2005-08-10 18:50:36 +00:00
Gerald Combs 06cc81aa5f When we receive junk data, mark it as a malformed packet instead of
a dissector bug.  This keeps buildbot from opening unnecessary bugs
during fuzz testing.

When we create a new scsi_task_data_t struct make sure all of its
members are initialized.

svn path=/trunk/; revision=15278
2005-08-10 16:05:50 +00:00
Gerald Combs 072a1bbfa6 ep_tvb_get_string() -> tvb_get_ephemeral_string().
svn path=/trunk/; revision=15277
2005-08-10 15:58:26 +00:00
Ronnie Sahlberg 0fbaa6140f tvb_get_stringz() to tvb_get_ephemeral_stringz() conversion
svn path=/trunk/; revision=15276
2005-08-10 14:37:52 +00:00
Ronnie Sahlberg 74fff802f9 tvb_get_stringz() to tvb_get_ephemeral_stringz() conversion.
svn path=/trunk/; revision=15275
2005-08-10 14:35:24 +00:00
Ronnie Sahlberg 39ab2568aa convert to tvb_get_ephemeral_stringz() and fix an obvious memleak
svn path=/trunk/; revision=15274
2005-08-10 14:28:18 +00:00
Ronnie Sahlberg 9599cf9e3b add new function tvb_get_ephemeral_stringz()
svn path=/trunk/; revision=15273
2005-08-10 14:25:59 +00:00
Ronnie Sahlberg efa1f43005 convert some tvb_fake_unicode() to tvb_get_ephemeral_faked_unicode()
svn path=/trunk/; revision=15272
2005-08-10 14:17:27 +00:00
Ronnie Sahlberg b4441e6748 rename ep_tvb_fake_unicode() to tvb_get_ephemeral_faked_unicode() and update the README file.
svn path=/trunk/; revision=15271
2005-08-10 13:56:34 +00:00
Ronnie Sahlberg ec3ab9ec3e rename ep_tvb_get_string() to tvb_get_ephemeral_string() asnd update the documentation in README.developer
svn path=/trunk/; revision=15270
2005-08-10 13:41:13 +00:00
Ronnie Sahlberg 19dd9f8159 ememify tywo more tvb_get_string()
svn path=/trunk/; revision=15269
2005-08-10 13:01:16 +00:00
Gerald Combs 0b67c91c59 Add a note about the IrDA dissector crash.
svn path=/trunk/; revision=15268
2005-08-09 14:46:06 +00:00
Gerald Combs 42137a0331 Make sure we initialize our iap_conv struct _before_ we go digging
into a tvbuff.  This keeps us from leaving junk data behind if we
throw an exception.

svn path=/trunk/; revision=15267
2005-08-09 14:38:11 +00:00
Guy Harris 0632baee21 "g_locale_to_utf8()" returns a "gchar *", and the string it returns is
dynamically allocated.  Don't assign its result to "const gchar *".

svn path=/trunk/; revision=15266
2005-08-09 00:07:12 +00:00
Guy Harris badd56fbfd The "proto" argument to "conversation_get_proto_data()" and
"conversation_add_proto_data()" is supposed to be a protocol ID, as
returned by "proto_register_protocol()".  In addition, there are two
different types of protocol data being attached to a conversation; use
different protocol IDs for them, so we don't misinterpret an
"iap_conversation_t" as a "lmp_conversation_t" or vice versa.

svn path=/trunk/; revision=15265
2005-08-09 00:03:45 +00:00
Ulf Lamping 0dc9fb3d4a various code cleanup:
-use g_snprintf instead of sprintf and snprintf
-use g_strdup_printf where appropriate
-remove #include "snprintf.h" (as only g_snprintf should be used)
-replace some more alloc/realloc/calloc/free with their glib pendants

svn path=/trunk/; revision=15264
2005-08-08 18:50:39 +00:00
Ulf Lamping f3407856f4 fix some MSVC const warnings
svn path=/trunk/; revision=15263
2005-08-08 17:22:55 +00:00
Jörg Mayer 979636e8f7 OK, so Didier was probably right using $^ :-)
svn path=/trunk/; revision=15262
2005-08-08 16:53:09 +00:00
Jörg Mayer 83461b1e6a Didier Gautheron:
A small patch for compiling ethereal outside the source tree.


svn path=/trunk/; revision=15261
2005-08-08 14:17:42 +00:00
Ronnie Sahlberg f3f2f6312b From
Eric Wedel

Add a preference to RPC (default off) that will heuristically attempt to find
PDUs starting in the middle of a segment.



svn path=/trunk/; revision=15260
2005-08-08 09:52:59 +00:00
Ronnie Sahlberg 3c0f522818 updates from Anders B
Regenerate gsm ss and gsm map



svn path=/trunk/; revision=15259
2005-08-08 08:53:05 +00:00
Guy Harris 4c20433d0b Centralize the code to create the subtree for RSVP objects and to put
the length and object class items into that tree.  Put the object class
item into the tree as a visible item, rather than as a hidden item and
as a text entry.

Add some additional length checks.

svn path=/trunk/; revision=15258
2005-08-08 07:27:14 +00:00
Ronnie Sahlberg a5aad765f3 from Dominique Bastien
small update for slowprotocols


svn path=/trunk/; revision=15257
2005-08-07 23:39:00 +00:00
Ulf Lamping 7761e8ef56 Use the now released WinPcap 3.1 version instead of the beta 4.
We don't need to uninstall an old WinPcap version first, as this is done by the WinPcap installer itself now.

svn path=/trunk/; revision=15256
2005-08-07 23:10:06 +00:00
Guy Harris 3d3dbb9b15 DHCP Failover runs over TCP; use tcp_dissect_pdus.
There's no need to build a list of all the options and then dissect them
individually; just have one loop that dissects them.  (The full list
wasn't being freed, so we were leaking memory.)

Add some more sanity checks.

Clean up a bunch of other things.

svn path=/trunk/; revision=15255
2005-08-07 20:06:01 +00:00
Guy Harris 194fdb6676 Fix the spelling of "transferred".
Fix the sizes of some items to match what's in the I-D and what's being
fetched from the packet.

Check for the length of items before doing *anything* with the item,
including fetching the data from the packet.  Just put a "bad length"
indication into the protocol tree; don't abort the dissection (we can
just move on to the next TLV).

svn path=/trunk/; revision=15254
2005-08-07 18:03:34 +00:00
Jörg Mayer aaec199c4a Start a list of packages required for each distro.
So far only Suse 9.3 is covered.

Infos for other systems are very welcome.


svn path=/trunk/; revision=15252
2005-08-07 00:07:18 +00:00
Guy Harris 84cf5472e9 If a dissector writer directly throws DissectorError, don't punish the
user by crashing due to a null pointer dereference, punish the dissector
writer by saying he or she didn't bother providing an explanation of the
error.

The exception message isn't a const string any more; make the
"exception_message" argument to "show_exception()" a "char *", not a
"const char *".

svn path=/trunk/; revision=15251
2005-08-06 21:38:43 +00:00
Guy Harris f618b54d36 Support throwing an exception with a null message pointer, and have the
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
2005-08-06 19:58:45 +00:00
Guy Harris b003633f3b "read_filter_list()" and "save_filter_list()" mallocate the path string
that they return through the "pref_path_return" argument; make it a
"char **", as a pointer to a "char *" is passed to it, and the caller
has to free that.

svn path=/trunk/; revision=15249
2005-08-06 18:42:07 +00:00
Guy Harris 23b2341a9b We no longer generate a "Loading" message ourselves, we just pass the
name of the file being loaded to "delayed_create_progress_dlg()".  Get
rid of the pointless "g_strdup_printf()" call (which amounted to a
more-expensive "g_strdup()", and the variables it used.

svn path=/trunk/; revision=15248
2005-08-06 18:40:03 +00:00
Guy Harris d473807893 "setup_tmpdir()" either returns the const string passed to it, or it
returns a malloced string that's supposed to persist as long as Ethereal
is running.  Make it return "const char *", and return either the former
pointer or the result of mallocation, so we don't end up using the same
variable for a const pointer and a non-const pointer.

Make the variables to which its result is assigned const pointers as
well.

"strlen()" returns size_t; make a argument to which its result is
assigned a size_t.

Just out of paranoia, check for a zero-length string passed to
"setup_tmpdir()".

svn path=/trunk/; revision=15247
2005-08-06 18:38:35 +00:00
Gerald Combs e108e80811 Add a note about the ISIS LSP bug.
svn path=/trunk/; revision=15246
2005-08-06 15:23:52 +00:00
Gerald Combs b226f35d6d Increase the size of some variables so that we don't overflow them and loop
forever.  Fixes bug 320.

svn path=/trunk/; revision=15245
2005-08-06 15:18:45 +00:00
Jörg Mayer 62b7cc3043 Last set of char -> const char trivial warning fixes.
svn path=/trunk/; revision=15244
2005-08-06 14:03:14 +00:00
Michael Tüxen fd79f5eb9c Update to
* http://www.ietf.org/internet-drafts/draft-ietf-rserpool-common-param-09.txt
 * http://www.ietf.org/internet-drafts/draft-ietf-rserpool-enrp-12.txt
 * http://www.ietf.org/internet-drafts/draft-ietf-rserpool-asap-12.txt


svn path=/trunk/; revision=15243
2005-08-06 12:02:34 +00:00
Guy Harris b8bb6b495c Squelch more const pointer warnings.
svn path=/trunk/; revision=15242
2005-08-06 10:31:27 +00:00
Guy Harris f8871c612d Make some structure members that are always set from mallocated data not
"const" pointers, so that we don't get warnings when we free the data
they point to.

svn path=/trunk/; revision=15241
2005-08-06 10:30:21 +00:00
Guy Harris 46d485405e Make a variable whose value might be trashed by setjmp/longjmp
"volatile" to avoid that.

svn path=/trunk/; revision=15240
2005-08-06 10:29:20 +00:00
Guy Harris ca6ddf3e8d Don't assign "" to a string that's only used after it's assigned to.
"tvb_fake_unicode()" never returns a null pointer, so there's no need to
check for it; there's also no need to check that it's not an empty
string before freeing it, as it's always assigned a g_malloc()ed string.

It also takes as an argument the number of Unicode characters in the
string, not the number of bytes in the string.

Use "format_text()" when adding a string to the Info column, in case
it has non-printable characters.

Don't use "proto_tree_add_string_format()" if you don't have to.

svn path=/trunk/; revision=15239
2005-08-06 09:23:28 +00:00
Guy Harris 4ce075fb78 Use a NULL value for di->xfer as an indication that we don't know the
transfer context; that way, we don't have to make "di->xfer" a "const"
pointer, and can thus pass it to "g_free()" (if non-null) without
the compiler whining at us.

Note that telling the user to "click on ASSOC request" is not the best
thing to do, unless we simply cannot determine the right ASSOC request
to click on.

svn path=/trunk/; revision=15238
2005-08-06 09:18:52 +00:00
Guy Harris 7b31da8b11 DissectorError is not supposed to be directly thrown; one should use the
various DISSECTOR_ macros, so the error message includes an indication
of the problem, and the file and line number.

svn path=/trunk/; revision=15237
2005-08-06 04:01:38 +00:00
Guy Harris 5fb6e97fb4 Squelch more const warnings (and fix some memory leaks that found).
_U_-ify some unused arguments, rather than assigning them to themselves.

Un-constify one variable that gets assigned a mallocated pointer.

Clean up indentation.

svn path=/trunk/; revision=15236
2005-08-06 03:44:55 +00:00
Gerald Combs b992c73391 In packet-frame.c, don't free static memory when we throw a
DissectorError.  In packet-kerberos.c, restore pinfo->private_data if
we throw an exception, which keeps the SMB dissector from throwing
a DissectorError.  Initialize variables in other places to squelch
valgrind warnings.

svn path=/trunk/; revision=15235
2005-08-06 03:43:42 +00:00