Jaap Keuter
7417244b1e
Fix a cloding tag
...
svn path=/trunk/; revision=17522
2006-03-08 10:24:59 +00:00
Luis Ontanon
83296ec679
Another off by one error found by coverity (CID 83), using > instead of >= when comparing index against array size.
...
svn path=/trunk/; revision=17521
2006-03-08 10:20:09 +00:00
Luis Ontanon
3fa91ab7be
Coverity's run 14 CID 82.
...
an off by one error (> vs >= in bounds check).
svn path=/trunk/; revision=17520
2006-03-08 10:14:51 +00:00
Luis Ontanon
8284947d84
Hide #line directives inside comments so that coverrity shows the errors it has found. It appears that Coverity doesn't look for source files but in the same dir where the generated file resides.
...
svn path=/trunk/; revision=17519
2006-03-08 09:49:31 +00:00
Ronnie Sahlberg
d2ae498e21
coverity bug 73
...
dont call fragment_add when len is -1 (or really really large if seen as a guint32)
svn path=/trunk/; revision=17518
2006-03-08 09:43:06 +00:00
Ronnie Sahlberg
9e6a992bd6
coverity turned up a false positive in cid 37
...
smb_info is guaranteed to always be non-NULL
so the test for !=NULL (which triggered coverity) is redundant
svn path=/trunk/; revision=17517
2006-03-08 09:03:10 +00:00
Ronnie Sahlberg
b4c4d56509
remove some harmless but redundant code
...
coverity cid 31
svn path=/trunk/; revision=17516
2006-03-08 08:35:13 +00:00
Jaap Keuter
1f5ada6df0
Fix left open file (coverity CID 108) and g_string leak. Clean up double width line drawing.
...
svn path=/trunk/; revision=17515
2006-03-08 07:06:42 +00:00
Gilbert Ramirez
853b929df0
Remove dead code. Due the to if() test that checks for specific
...
values of 'length', the code in question can never run.
This fixes Coverity bug ID #1 .
svn path=/trunk/; revision=17514
2006-03-07 22:38:51 +00:00
Gerald Combs
a103501de2
Fix what Coverity CID 61 was actually complaining about: Don't pass a NULL
...
value to get_interface_descriptive_name().
svn path=/trunk/; revision=17513
2006-03-07 22:14:12 +00:00
Ronnie Sahlberg
ed9d4d16c7
potential dereference of null pointer
...
coverity cid 39
svn path=/trunk/; revision=17512
2006-03-07 21:18:08 +00:00
Ronnie Sahlberg
60590c0163
fix a potential assignment of a wild pointer
...
fixes coverity cid 128
svn path=/trunk/; revision=17511
2006-03-07 20:52:23 +00:00
Anders Broman
317c8e5f92
Fix Coverity CID: 8 dead code.
...
svn path=/trunk/; revision=17510
2006-03-07 20:51:05 +00:00
Ronnie Sahlberg
06d73310c9
fix a potential null dereference
...
found in coverity cid:48
svn path=/trunk/; revision=17509
2006-03-07 20:47:20 +00:00
Anders Broman
0331204009
Undo the prevous unfortunate "rearrangement of code".
...
svn path=/trunk/; revision=17508
2006-03-07 20:24:11 +00:00
Gilbert Ramirez
96db73a93f
Remove a case statement which can never be reached, because the
...
previous isprint() test covers that case. This fixes Coverity bug ID #2 .
svn path=/trunk/; revision=17507
2006-03-07 20:01:42 +00:00
Gerald Combs
1a4719ef8d
Fix Coverity run 12, CID 104: Don't overflow a guint8, and don't read past
...
the end of an array.
Update the release notes.
svn path=/trunk/; revision=17506
2006-03-07 19:53:57 +00:00
Gerald Combs
c47503fd5f
Fix Coverity run 12 CID 110: Make sure we don't dereference a NULL pointer.
...
svn path=/trunk/; revision=17505
2006-03-07 19:17:00 +00:00
Gerald Combs
432e1233bb
Fix Coverity run 12 CID 61: In main_cf_cb_live_capture_update_started(),
...
make sure capture_opts isn't NULL before we try to use it.
svn path=/trunk/; revision=17504
2006-03-07 19:11:35 +00:00
Anders Broman
4e232aa98e
Dissect part of TIPCv2.
...
svn path=/trunk/; revision=17503
2006-03-07 18:19:42 +00:00
Anders Broman
7e8a72a218
Fix a bug reported by covierty and solved by http://www.sqlite.org/cvstrac/rlog?f=sqlite/tool/lemon.c
...
Rearrange the code a bit to make it easier to make a diff with the sqlite version of lemon.
svn path=/trunk/; revision=17502
2006-03-07 18:18:04 +00:00
Jaap Keuter
d986b91df6
Solving various uninitialized variable warnings.
...
coverity reports 132, 133 and 134
svn path=/trunk/; revision=17501
2006-03-07 16:39:54 +00:00
Gerald Combs
99a14bf9f1
From Jeff Morriss:
...
emem.c wouldn't compile with EP_DEBUG_FREE and SE_DEBUG_FREE defined.
The attached patch fixes that and cleans up some warnings that showed
up with those two were defined, too. (In fact 95% of the patch is
for warnings.)
Fix up whitespace.
svn path=/trunk/; revision=17500
2006-03-07 16:31:47 +00:00
Gerald Combs
ac32d8875f
Initialize a return value. Found by Coverity.
...
Fix up whitespace.
svn path=/trunk/; revision=17499
2006-03-07 16:28:25 +00:00
Jaap Keuter
3b2760d2df
Catch negative return value, leading to near infinite loop.
...
Filed as coverity bug 136.
svn path=/trunk/; revision=17498
2006-03-07 15:22:57 +00:00
Lars Roland
1816f28559
Fix a possible NULL pointer dereference (coverity bug id 32)
...
svn path=/trunk/; revision=17497
2006-03-07 14:44:25 +00:00
Luis Ontanon
65f5262bb6
Rename set_string_hash... into se_tree_xxx_string as proposed by ronnie for consistency whith its real nature.
...
svn path=/trunk/; revision=17496
2006-03-07 14:10:30 +00:00
Luis Ontanon
14c4d6fad9
From Jeff Morris,
...
Avoid an off by one error in dissect_fields_dnsea() and dissect_fields_onsea()
Fixes Bug 794
svn path=/trunk/; revision=17495
2006-03-07 14:02:25 +00:00
Lars Roland
307ba63d48
Fix a possible NULL pointer dereference discovered by coverity.
...
I'm not sure, if it is possible to get a NULL pointer here, but it is safer to fix it.
svn path=/trunk/; revision=17494
2006-03-07 13:48:54 +00:00
Lars Roland
b51d8f3f89
Use g_assert to save us from dereferencing a NULL pointer. g_warning is not strong enough. This should fix a defect discovered by coverity.
...
svn path=/trunk/; revision=17493
2006-03-07 13:11:08 +00:00
Ronnie Sahlberg
7fc017a5c4
rewrite of some hairy code
...
fixes (hopefully) coverity bug 137
svn path=/trunk/; revision=17492
2006-03-07 10:25:42 +00:00
Luis Ontanon
888fc30d27
use an elaborated key for the string keyed "hash table"
...
svn path=/trunk/; revision=17491
2006-03-07 06:33:47 +00:00
Anders Broman
84b00c55d1
Fix a bug reported by coverity.
...
svn path=/trunk/; revision=17490
2006-03-07 06:15:06 +00:00
Luis Ontanon
95b2d64a36
ep_strdup stack buffer before returning it.
...
fixes coverity error 109.
svn path=/trunk/; revision=17489
2006-03-07 05:24:02 +00:00
Luis Ontanon
e83301935d
Remove strhash test code from lua...
...
svn path=/trunk/; revision=17488
2006-03-07 04:40:57 +00:00
Luis Ontanon
0cfdbc3676
- contsify a variable in packet-alcap.c to see if a fake bug reported by coverty goes away.
...
- fix an off by one error in packet-telnet.c reported by coverty
svn path=/trunk/; revision=17487
2006-03-07 04:33:46 +00:00
Luis Ontanon
6e04b0aadb
- merge SubTree, ProtoTree and ProtoItem into a single TreeItem class.
...
- By the same token get rid of ProtoFieldArray having Proto.fields attribute been a lua "Array" containing fields.
(still untested, and probably broken)
svn path=/trunk/; revision=17486
2006-03-07 01:25:14 +00:00
Luis Ontanon
8dbad83e5c
Add a hash table with string keys based on the red/black tree.
...
svn path=/trunk/; revision=17485
2006-03-07 01:15:29 +00:00
Anders Broman
0c8b1090f4
From Ming Zhang:
...
Update on dissector packet-scsi
* modepage processing for MMC
* support cmd Get Event Status Notification
* support cmd start stop unit for mmc
svn path=/trunk/; revision=17484
2006-03-06 20:06:05 +00:00
Gerald Combs
f99ad2e895
Handle a null pointer. Fixes bugs 778 and 787.
...
svn path=/trunk/; revision=17483
2006-03-06 19:49:34 +00:00
Jörg Mayer
334048d3ce
Update manuf, FAQ, help/faq.txt
...
svn path=/trunk/; revision=17482
2006-03-06 17:00:33 +00:00
Gerald Combs
705e454915
Remove the test-splint target. Splint never did work on the Ethereal sources
...
and it doesn't look like that will change any time soon.
svn path=/trunk/; revision=17481
2006-03-06 16:30:45 +00:00
Ronnie Sahlberg
07c2845fe7
get rid of another slow hashtable and one global variable and
...
replace it with a better and memleak free se_tree
svn path=/trunk/; revision=17480
2006-03-06 14:30:34 +00:00
Ronnie Sahlberg
51f8a228f6
replace one hashtable storing filehandles with a new se tree
...
this should make it quite a bit faster than before.
svn path=/trunk/; revision=17479
2006-03-06 13:45:30 +00:00
Ronnie Sahlberg
4caa47a1ac
replace a g_malloc()/g_free() pair with ep_alloc() instead
...
svn path=/trunk/; revision=17478
2006-03-06 10:39:31 +00:00
Ronnie Sahlberg
745994c364
add helper to build (red/black) trees from a key that is a vector of guin32 arrays.
...
test this functionality by calling these vector insert/lookup tree functions from the nfs dissector for when filehandles are used as a key.
these vector functions could also be used to efficiently store conversations :
se_tree_key_t[6] = {
{ addr_len/4, &src_addr },
{ addr_len/4, &dst_addr },
{ 1, &src_port32 },
{ 1, &dst_port32 },
{ 1, &protocol32 },
{ 0, NULL }
}
(the nfs dissector needs a LOT of work. It is very painful to work with
very large nfs traces with all the memory it wastes (and eats) as well as how slow all the tables make it)
svn path=/trunk/; revision=17477
2006-03-06 10:25:19 +00:00
Anders Broman
7f2bd47f5e
From Jeff Morriss:
...
The M3UA I-G and -bis specify a couple of registration result codes that
the M3UA dissector doesn't currently understand. The attached patch fixes that.
svn path=/trunk/; revision=17476
2006-03-06 06:21:01 +00:00
Anders Broman
07ca040c73
From Jhon Sullivan:
...
Version 0.47a of eMule extends the eDonkey protocol to support files up to 256GB in length. This patch adds support for the new packet types, and changes to existing packets, used to support this.
In addition, it seems to be getting more common to use compression on the index server connection. The packets used are just like the uncompressed versions, except transmitted as a zlib compressed stream, so I've added dissection for the contents of those too.
Plus a couple of bugfixes to the UDP packet dissection.
svn path=/trunk/; revision=17475
2006-03-06 06:19:11 +00:00
Anders Broman
d19c901b52
Make a new PER function dissect_per_enumerated() and use it for the two places in RANAP where
...
extensions has been made to enumerations. asn2eth should be updated to use it.
svn path=/trunk/; revision=17474
2006-03-05 20:21:19 +00:00
Anders Broman
226a976d88
Add the actual dissector, win makefile and update the asn1 makefile.
...
svn path=/trunk/; revision=17473
2006-03-05 18:39:53 +00:00