Ethereal-cvs: [Ethereal-cvs] rev 16002: /trunk/epan/dissectors/: packet-gsm_map.c /trunk/asn1/

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Sun, 25 Sep 2005 09:32:04 GMT
User: guy
Date: 2005/09/25 04:32 AM

Log:
 A loop processing all the bytes in a tvbuff from a given offset to the
 end of the data in the tvbuff should stop when the offset is >= the
 total amount of data in the tvbuff, not when it's > the total amount in
 the tvbuff following the starting offset.
 
 In "unpack_digits()", return a null string, not a null pointer, if
 there's nothing left in the tvbuff starting at the starting offset, so
 that the caller doesn't have to check for a null pointer, and return an
 ep_alloc()ed buffer, so the caller doesn't have to worry about freeing
 the result.
 
 If we see a filler digit, don't advance the offset in the string buffer;
 we want to put the terminating '\0' right after the character we just
 put into the string.
 
 Fuzzed against some GSM captures.

Directory: /trunk/epan/dissectors/
  Changes    Path                Action
  +7 -17     packet-gsm_map.c    Modified

Directory: /trunk/asn1/gsmmap/
  Changes    Path                         Action
  +0 -8      gsmmap.cnf                   Modified
  +7 -9      packet-gsm_map-template.c    Modified



http://anonsvn.ethereal.com/viewcvs/viewcvs.py?rev=16002&view=rev