Detected only under Linux, found with purify, except when file
compiled -g with suncc....
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7001
dc483132-0cff-0310-8789-
dd5450dbe970
+Fri Oct 27 13:37:04 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * dump.c (process_k5_record): Fix off by one in malloc.
+
Mon Oct 9 16:35:19 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
* kdb5_edit.c (extract_v4_srvtab): Extract a one byte version
nread = fscanf(filep, "%d\t%d\t%d\t%d\t%d\t", &t1, &t2, &t3, &t4, &t5);
if (nread == 5) {
/* Get memory for flattened principal name */
- if (!(name = (char *) malloc((size_t) t2)))
+ if (!(name = (char *) malloc((size_t) t2 + 1)))
error++;
/* Get memory for and form tagged data linked list */