Files
linux-stable-mirror/include/linux
Chuck Lever e5cff482c7 SUNRPC: Use unsigned string lengths in xdr_decode_string_inplace
XDR strings, opaques, and net objects should all use unsigned lengths.
To wit, RFC 4506 says:

4.2.  Unsigned Integer

   An XDR unsigned integer is a 32-bit datum that encodes a non-negative
   integer in the range [0,4294967295].

 ...

4.11.  String

   The standard defines a string of n (numbered 0 through n-1) ASCII
   bytes to be the number n encoded as an unsigned integer (as described
   above), and followed by the n bytes of the string.

After this patch, xdr_decode_string_inplace now matches the other XDR
string and array helpers that take a string length argument.  See:

xdr_encode_opaque_fixed, xdr_encode_opaque, xdr_encode_array

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Acked-By: NeilBrown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
2008-02-01 16:42:02 -05:00
..
2008-02-01 11:34:49 +01:00
2008-01-30 13:31:48 +01:00
2008-01-30 13:31:10 +01:00
2008-01-30 13:31:56 +01:00
2008-01-30 13:30:27 +01:00
2008-01-31 19:26:46 -08:00
2008-01-31 19:28:20 -08:00
2008-01-30 13:33:13 +01:00
2008-01-30 02:06:08 -05:00
2008-01-30 23:27:58 +01:00
2008-01-31 19:28:36 -08:00
2008-01-30 13:30:53 +01:00
2008-01-30 13:31:47 +01:00
2008-01-31 19:26:46 -08:00
2008-01-31 19:28:30 -08:00
2008-01-30 13:31:20 +01:00
2008-01-30 13:31:20 +01:00
2008-01-30 13:31:20 +01:00
2008-01-31 22:05:48 +01:00