man-db/man-db-2.6.0.2-double-free.patch
Peter Schiffer b09802dbfc resolves: #702904
fixed double free or corruption issue
resolves: #739207
  require groff-base instead of groff
rebuilt for gdbm-1.9.1-1
2011-10-06 15:55:05 +02:00

13 lines
421 B
Diff

diff -up trunk/src/filenames.c.double-free trunk/src/filenames.c
--- trunk/src/filenames.c.double-free 2011-01-10 21:02:05.000000000 +0100
+++ trunk/src/filenames.c 2011-10-04 16:49:42.146071708 +0200
@@ -85,6 +85,8 @@ char *filename_info (const char *file, s
char *slash = strrchr (manpage, '/');
char *base_name;
+ memset (info, 0, sizeof (struct mandata));
+
#ifdef COMP_SRC
struct compression *comp;
#endif