[linux-cifs-client] [PATCH] Fix CIFS range check
David Howells
dhowells at redhat.com
Wed Jul 9 10:28:13 GMT 2008
Fix the CIFS range check to always use a big enough size variable that the
compiler won't moan about comparing it to ULONG_MAX/8 on a 64-bit platform.
Signed-off-by: David Howells <dhowells at redhat.com>
---
fs/cifs/asn1.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/cifs/asn1.c b/fs/cifs/asn1.c
index f58e41d..512587d 100644
--- a/fs/cifs/asn1.c
+++ b/fs/cifs/asn1.c
@@ -394,8 +394,8 @@ asn1_oid_decode(struct asn1_ctx *ctx,
unsigned char *eoc, unsigned long **oid, unsigned int *len)
{
unsigned long subid;
- unsigned int size;
unsigned long *optr;
+ size_t size;
size = eoc - ctx->pointer + 1;
More information about the linux-cifs-client
mailing list