[801] in Kerberos-V5-bugs
Re: asn1buf_remove_octetstring can call calloc with size of 0...
daemon@ATHENA.MIT.EDU (Theodore Ts'o)
Thu Sep 29 16:58:12 1994
Date: Thu, 29 Sep 1994 16:58:03 +0500
From: Theodore Ts'o <tytso@MIT.EDU>
To: epeisach@MIT.EDU
Cc: krb5-bugs@MIT.EDU
In-Reply-To: [794]
The code was actually OK, since it didn't matter whether or not NULL or
malloc(1) was returned. I've since changed it so that if len is 0, a
NULL is always filled in. This should give us a bit more consisntency,
which is a good thing. It also means we'll catch bugs caused by code
assuming that allocated strings are always non-NULL that much faster.
- Ted