aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-smb-common.c
AgeCommit message (Collapse)AuthorFilesLines
2011-04-18Removed some unneeded assignments.Stig Bjørlykke1-1/+1
Found by clang. svn path=/trunk/; revision=36698
2011-02-23Split get_dns_name() into get_dns_name() and expand_dns_name().Gerald Combs1-69/+10
In dissect_ms_compressed_string() dissect_mscldap_string() simply call expand_dns_name() instead of using duplicate (and insecure) code. This *might* break CLDAP and SMB dissection. If that's the case we should probably revert get_dns_name() and simplify expand_dns_name(). Fixes infinite recursion errors found by joernchen of Phenoelit. svn path=/trunk/; revision=36029
2011-01-16There's no need to pass the result of tvb_get_ptr() as the 'value' inJeff Morriss1-2/+1
proto_tree_add_*(): just use proto_tree_add_item(). Replace some tvb_get_ptr()s with tvb_get_ephemeral_string() or tvb_get_const_stringz(). Use tvb_memeql() & tvb_memcmp(). svn path=/trunk/; revision=35558
2010-12-21Fix indentation: change from a mixture of 2 and 4 spaces to tabs (whichStephen Fisher1-168/+187
is what packet-smb.c uses) and add extra line breaks. Both changes are for improved readbility of the frequent complex and cryptic loops. svn path=/trunk/; revision=35238
2010-04-06#include <string.h> not needed.Bill Meier1-2/+0
svn path=/trunk/; revision=32411
2008-03-01Rewrote to use g_strlcpy and g_strlcat.Stig Bjørlykke1-1/+2
svn path=/trunk/; revision=24525
2008-02-02Rewrote some prohibited APIs in epan/dissectors/ (sprintf, strcpy, strcat).Stig Bjørlykke1-1/+1
If we get some truncated strings we probably overwrote some buffers... svn path=/trunk/; revision=24249
2007-03-30Fix more warningsStephen Fisher1-1/+1
svn path=/trunk/; revision=21286
2006-11-26Problem: Bill Meier1-7/+6
"off by 1" bug in packet-smb-common.c: dissect_ms_compressed_string_internal() was causing a 1 character buffer overflow thus causing the canary to sing ! Fixes bug #1241 svn path=/trunk/; revision=19983
2006-11-24From Stefan Metzmacher:Jaap Keuter1-0/+78
I created two patches: 1.) move the handling of the compressed strings in CLDAP 'netlogon' replies into a generic place. 2.) implement dissection of SMB_NETLOGON cmd's 0x17 and 0x19 svn path=/trunk/; revision=19970
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-3/+3
svn path=/trunk/; revision=18196
2005-08-19remove g_malloc() from packet-smb-commonRonnie Sahlberg1-3/+1
svn path=/trunk/; revision=15420
2005-08-17replace a whole bunch of silly rotating stating buffers with ep_alloc() callsRonnie Sahlberg1-18/+5
this should fix a whole number of display bugs when there are too many such pdus in a single frame for the silly buffers to handle before they wrap. svn path=/trunk/; revision=15384
2005-08-10tvb_get_stringz() to tvb_get_ephemeral_stringz() conversionRonnie Sahlberg1-3/+1
svn path=/trunk/; revision=15276
2004-12-01Get rid of a long-obsolete comment.Guy Harris1-6/+0
svn path=/trunk/; revision=12630
2004-08-02"dissect_smb_unknown()" isn't some generic routine, it's used only toGuy Harris1-11/+0
dissect unknown netlogon commands; move it to "packet-smb-logon.c". svn path=/trunk/; revision=11589
2004-08-02Don't drag in a huge pile of headers in "packet-smb-common.h"; rely onGuy Harris1-0/+9
the files including it to include what they need. svn path=/trunk/; revision=11588
2004-08-02Move the NTLMv2 blob stuff back into packet-ntlmssp.c - it's moreGuy Harris1-198/+0
NTLMSSP-related than SMB-related, and documents about NTLMSSP talk about it, so it's a little more convenient to keep all that stuff together - and export it through a packet-ntlmssp.h header. svn path=/trunk/; revision=11585
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-0/+490
Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. svn path=/trunk/; revision=11410