+Thu Aug 22 23:25:23 CDT 2002 Adam Heath <doogie@debian.org>
+
+ * lib/nfmalloc.c: Fix read past buffer in lib/nfmalloc.c.
+
Thu Aug 22 23:16:02 CDT 2002 Adam Heath <doogie@debian.org>
* utils/md5sum.c: Handle directories better in md5sum.
Closes: #154503.
* Fix extraction of md5sum in dpkg-scanpackages. Closes: #153769.
* Handle directories better in md5sum. Closes: #157453.
+ * Fix read past buffer in lib/nfmalloc.c. Closes: #157304.
-- Adam Heath <doogie@debian.org> UNRELEASED
char *nfstrsave(const char *string) {
OBSTACK_INIT;
- return obstack_copy (&db_obs, string, strlen(string) + 1);
+ return obstack_copy0 (&db_obs, string, strlen(string));
}
char *nfstrnsave(const char *string, int l) {
- char *ret;
OBSTACK_INIT;
- ret = obstack_copy (&db_obs, string, l + 1);
- *(ret + l) = 0;
- return ret;
+ return obstack_copy0 (&db_obs, string, l);
}
void nffreeall(void) {