From: Greg Hudson Date: Thu, 23 Apr 2009 14:52:25 +0000 (+0000) Subject: In krb5_fcc_read, remove an assert which could never trigger (because X-Git-Tag: krb5-1.8-alpha1~532 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4a58548d6e2af0d4c1b3c26bfc0b88f0223cf7ac;p=krb5.git 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 --- 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; }