From 4a58548d6e2af0d4c1b3c26bfc0b88f0223cf7ac Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Thu, 23 Apr 2009 14:52:25 +0000 Subject: [PATCH] In krb5_fcc_read, remove an assert which could never trigger (because len is unsigned and cannot be less than zero). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22274 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/ccache/cc_file.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib/krb5/ccache/cc_file.c b/src/lib/krb5/ccache/cc_file.c index 0494c3552..8b43b4e17 100644 --- a/src/lib/krb5/ccache/cc_file.c +++ b/src/lib/krb5/ccache/cc_file.c @@ -427,7 +427,6 @@ krb5_fcc_read(krb5_context context, krb5_ccache id, krb5_pointer buf, unsigned i assert(data->cur_offset > 0); assert(data->cur_offset <= data->valid_bytes); len -= ncopied; - assert(len >= 0); /* Don't do arithmetic on void pointers. */ buf = (char*)buf + ncopied; } -- 2.26.2