Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-smb-common.c

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

From: guy@xxxxxxxxxxxx (Guy Harris)
Date: Fri, 2 Apr 2004 21:50:44 -0600 (CST)
guy         2004/04/02 21:50:44 CST

  Modified files:
    .                    packet-smb-common.c 
  Log:
  In "get_unicode_or_ascii_string()", treat a negative length argument as
  a very large unsigned integer (which it probably is), and trim it at
  INT_MAX, and fix the handling of too-long ASCII strings so that the
  "..." gets inserted.  Make sure that all the bytes of the string exist
  before truncating the string length to the buffer length, so that the
  appropriate exception is thrown.
  
  Revision  Changes    Path
  1.20      +22 -6     ethereal/packet-smb-common.c