glimpse really need this buffer to be zeroed,
or it will randomly dump core (esp. with malloc option J)
This commit is contained in:
parent
d038e7d297
commit
8b620b2efe
12
textproc/glimpse/patches/patch-agrep_bitap_c
Normal file
12
textproc/glimpse/patches/patch-agrep_bitap_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-agrep_bitap_c,v 1.1 2003/05/13 02:51:07 wilfried Exp $
|
||||
--- agrep/bitap.c.orig Wed Nov 20 19:28:42 1996
|
||||
+++ agrep/bitap.c Mon May 12 20:33:28 2003
|
||||
@@ -534,7 +534,7 @@ alloc_buf(fd, buf, size)
|
||||
#if AGREP_POINTER
|
||||
if (fd != -1)
|
||||
#endif /*AGREP_POINTER*/
|
||||
- *buf = (char *)malloc(size);
|
||||
+ *buf = (char *)calloc(1,size);
|
||||
}
|
||||
|
||||
void
|
Loading…
Reference in New Issue
Block a user