Commit graph

17370 commits

Author SHA1 Message Date
Luis Ontanon
e50663a09c Add a function that returns an unique guint32 for each dpc.
svn path=/trunk/; revision=17572
2006-03-10 22:05:23 +00:00
Luis Ontanon
4e1ca8f2c3 fix coverity CIDs 113 and 114.
while at it change the h248 context analysis to use se_trees instead of GHashTables


svn path=/trunk/; revision=17571
2006-03-10 22:01:10 +00:00
Luis Ontanon
8b22411809 avoid doing the lookup of a key twice while inserting items to a tree with an array key.
svn path=/trunk/; revision=17570
2006-03-10 21:58:49 +00:00
Ulf Lamping
60869fe1cc various code cleanup (e.g. remove unrequired length parameter), should also fix coverity id 126
svn path=/trunk/; revision=17569
2006-03-10 21:34:56 +00:00
Tomas Kukosa
082627bdb5 few warnings from GUID handling avoided
svn path=/trunk/; revision=17568
2006-03-10 14:14:39 +00:00
Tomas Kukosa
bb39c4f7a6 add guid-utils.h to Makefile.common
remove unused variables from tvbuff.c

svn path=/trunk/; revision=17567
2006-03-10 12:57:22 +00:00
Tomas Kukosa
923855bb20 new FT_GUID handling - big/little endian supported
svn path=/trunk/; revision=17566
2006-03-10 11:58:22 +00:00
Anders Broman
281e4a7ebb Fix CID 6 - Unused code.
svn path=/trunk/; revision=17565
2006-03-10 07:06:21 +00:00
Ronnie Sahlberg
d7f890c01e fix missing return bug from didier
svn path=/trunk/; revision=17564
2006-03-10 05:41:40 +00:00
Ronnie Sahlberg
8a9e493359 make using canaries optional
default to  use-canaries  since that is the current behaviour


svn path=/trunk/; revision=17563
2006-03-10 05:39:57 +00:00
Ronnie Sahlberg
eec9a1e95a add a define that controls explicitely whether we want to use guard pages (if available) or not.
let it default to     want-guard-pages  since the existing code does that.



svn path=/trunk/; revision=17562
2006-03-10 05:15:52 +00:00
Tim Potter
0afb8cd493 Remove a linebreak to emphasise the guid structure (doesn't change
the byte ordering).

svn path=/trunk/; revision=17561
2006-03-10 03:03:06 +00:00
Gerald Combs
65d37c099e Fix Coverity CID 129: initialize a couple of variables.
svn path=/trunk/; revision=17560
2006-03-09 23:13:49 +00:00
Ulf Lamping
209af8f5f0 debugging helper: if (for whatever reason) the message from dumpcap was invalid, try to print it. This was already helpful e.g. as a GLib warning was confusing the pipe handling
svn path=/trunk/; revision=17559
2006-03-09 22:13:51 +00:00
Ulf Lamping
ecc7e43f2c fix two bugs causing crashes on Win32:
- fix buggy g_snprintf call (Win32 fails if %s is called with a NULL pointer)
- don't call file close if file wasn't open before (Win32 crashes if eth_unlink is called with a NULL pointer)

svn path=/trunk/; revision=17558
2006-03-09 22:06:25 +00:00
Ulf Lamping
854c700502 don't use g_message() inside dissector code
svn path=/trunk/; revision=17557
2006-03-09 21:18:44 +00:00
Gerald Combs
d910d8491b Fix a possible NULL dereference (Coverity CID 33).
svn path=/trunk/; revision=17556
2006-03-09 20:48:17 +00:00
Gerald Combs
4535b93147 Make sure we can't pass NULL to strcmp. Fixes Coverity CID 34. Fix up
whitespace.

svn path=/trunk/; revision=17555
2006-03-09 19:38:51 +00:00
Gerald Combs
1feda8e2e2 There is a one-to-one mapping between each graph and its "toplevel" and
drawing_area widgets.  Instead of canoodling around with a global list
of graphs, simply associate a graph to its widgets using OBJECT_SET_DATA.
This should take care of Coverity CIDs 50 - 59.

Clean up whitespace.

svn path=/trunk/; revision=17554
2006-03-09 17:58:20 +00:00
Olivier Biot
f0c3253d6e Fix coverity Error CID: 15.
svn path=/trunk/; revision=17553
2006-03-09 16:21:39 +00:00
Anders Broman
238053ead2 Add lua:s nmakefile.nmake to the distribution.
svn path=/trunk/; revision=17552
2006-03-09 16:17:52 +00:00
Gerald Combs
172556500d Remove MIN and MAX defines, which GLib provides.
svn path=/trunk/; revision=17551
2006-03-09 16:00:33 +00:00
Gerald Combs
742493acd5 Take care of one last UTF-8 <-> UTF-16 conversion (assuming there aren't any
hiding behind casts).  Fixes bug 798.

Clean up whitespace.

svn path=/trunk/; revision=17550
2006-03-09 14:39:44 +00:00
Ronnie Sahlberg
41f5478753 coverity #62
potential null dereference


svn path=/trunk/; revision=17549
2006-03-09 12:16:53 +00:00
Ronnie Sahlberg
726471b25f coverity bug#42
dereverencing a null variable


svn path=/trunk/; revision=17548
2006-03-09 12:11:21 +00:00
Jörg Mayer
6cd888718a propset ...
svn path=/trunk/; revision=17547
2006-03-09 12:05:53 +00:00
Ronnie Sahlberg
6cdabceaca coverity #40
fix null dereference 

svn path=/trunk/; revision=17546
2006-03-09 11:44:56 +00:00
Ronnie Sahlberg
2872f8b94a coverity #5
bug causing cosmetic " " spaces to be missing between fields printed to the screen.


svn path=/trunk/; revision=17545
2006-03-09 11:34:08 +00:00
Ronnie Sahlberg
a0a3f8dda5 add documentation on how to use the binary trees
svn path=/trunk/; revision=17544
2006-03-09 11:06:21 +00:00
Jaap Keuter
e6ca05b8d8 From Laurant Rabret:
Please find enclosed 2 patches.
- Voip_calls_dlg.c.patch fixes a problem that appears with a release
compiled with GTK 2.8 + Visual Studio 2003. It seems g_snprintf can
corrupt memory when a length bigger than the array size is provided in
the second parameter (even if the generated string is smaller than the
array actual size!!)
- graph_analysis.c.patch fixes a memory corruption problem easy to
reproduce. Just open the pcap file enclosed, select "Statistics"->"Flow
Graph" and activate the "Network source/destination addresses" radio
button before pressing OK. You'll see a crash dump.
Thanks to check in
Best Regards
Laurent

svn path=/trunk/; revision=17543
2006-03-09 07:07:35 +00:00
Anders Broman
8482a05592 Fix Bug 725:
0.10.14 shows "malformed packet" when showing H323 CS: FACILITY message with opcode "Calltransfer initiate" 

svn path=/trunk/; revision=17542
2006-03-09 06:02:42 +00:00
Tim Potter
89d7f897a2 Display more info for some PXE DHCP options:
- Display UUID for tag #97 (Client machine identifier)
  - Display UNDI major and minor version for tag #94 (Client network 
    interface identifier) 
  - Use value strings for tag #93 (Client system architecture)

The byte ordering is messed up for the GUID though.

svn path=/trunk/; revision=17541
2006-03-09 04:31:10 +00:00
Luis Ontanon
943848cb02 Actually fix that leak!
svn path=/trunk/; revision=17540
2006-03-09 00:50:05 +00:00
Olivier Biot
5cd8dbd028 Fix Coverity issue CID: 14 in wkh_accept_encoding().
svn path=/trunk/; revision=17539
2006-03-08 22:52:31 +00:00
Gerald Combs
d2c8d80b33 Fix a couple of compilation warnings.
svn path=/trunk/; revision=17538
2006-03-08 22:42:24 +00:00
Gerald Combs
f31a402f6b Include tchar.h only if we're running Windows. Fixup whitespace.
svn path=/trunk/; revision=17537
2006-03-08 22:13:21 +00:00
Jaap Keuter
e77c4cdfc4 Consolidate duration decoding and presentation
svn path=/trunk/; revision=17536
2006-03-08 21:48:36 +00:00
Ulf Lamping
e147c558bf fix bug 772: and again, don't pass a NULL pointer to a printf like function on WIN32
svn path=/trunk/; revision=17535
2006-03-08 21:39:25 +00:00
Gerald Combs
9406c5db24 Use Unicode for all native Win32 calls. Unicode Windows applications
use UTF-16 internally and GTK+ 2.x uses UTF-8, which means we have to
do a lots of conversions.

Add utf_8to16() and utf_16to8 convenience functions to strutil.c.

svn path=/trunk/; revision=17534
2006-03-08 20:55:32 +00:00
Anders Broman
def11f9418 CID4 and CID3 Change
if ((value >= 1) || (value <= 0x4a)) {

to  if ((value >= 1) && (value <= 0x4a)) {

svn path=/trunk/; revision=17533
2006-03-08 18:58:08 +00:00
Anders Broman
b4d028c47e Fix:
Coverity CID19 Remove an uneccesarry line
CID20 Use the code from the asn2eth generated dissector while at it.

svn path=/trunk/; revision=17532
2006-03-08 18:56:13 +00:00
Lars Roland
12224e5f22 Make calculation of TCP Graph bounds more robust. The calculation might have failed in unusual conditions.
This bug was discovered while looking at defects #130 and #131 discovered by  coverity. 
This patch also fixes these non-severe defects.

svn path=/trunk/; revision=17531
2006-03-08 18:42:16 +00:00
Tomas Kukosa
3b5ed30a0d better support for ASN.1 Enumerated type in PER decoding
support in asn2eth will follow

svn path=/trunk/; revision=17530
2006-03-08 13:50:04 +00:00
Gilbert Ramirez
ae1041e081 Coverity CID 103 pointed me to this section of code. The buffer
overrun that Coverity thought existed does not exist. But I did
notice something else: a signed/unsigned disparity between
net_bits and new_nmask_bits.

So I fixed that, then realized that the function in question, a static
function named created_mask, is only used by one other function in
the file.  So I got ride of create_nmask and moved its logic into the
single calling function, ipv4_addr_set_netmask_bits.

svn path=/trunk/; revision=17529
2006-03-08 13:36:40 +00:00
Ronnie Sahlberg
3cd2777adc fix minor bug coverity 74
length_remaining could become -1 and if so the next tvb access (tvb_memcpy()) would cause an exception.    not really an ethereal since it would have no ill effects in reality.



change !=0   to >0    to make it more clear what we actually test.




svn path=/trunk/; revision=17528
2006-03-08 11:09:02 +00:00
Ronnie Sahlberg
3a92bf963c fix coverity bug 122
svn path=/trunk/; revision=17527
2006-03-08 10:59:05 +00:00
Luis Ontanon
cdc088fb66 An unimportant and harmless one per run leak in a tool used for building... Coverity cannot evaluate that :P
run 14 CID 107


svn path=/trunk/; revision=17526
2006-03-08 10:58:09 +00:00
Luis Ontanon
6007c31402 Avoid passing junk to ssl_debug_printf fmt if a weird cipher is found ().
FIxes Coverity's run 14 CID 81


svn path=/trunk/; revision=17525
2006-03-08 10:53:12 +00:00
Ronnie Sahlberg
b1a11016ec remove a redundant if statement
this if statement always evaluate to true since it is called from a single place that is only entered if the very same expression is also true there.




svn path=/trunk/; revision=17524
2006-03-08 10:51:33 +00:00
Ronnie Sahlberg
806a5c8d95 for really really weird malformed lanman packets it is theoretically possible
that trp is uniunitialized.



coverity bug 46



svn path=/trunk/; revision=17523
2006-03-08 10:36:28 +00:00