summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/wireshark/files/patch-tools_lemon_lemon.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/wireshark/files/patch-tools_lemon_lemon.c b/net/wireshark/files/patch-tools_lemon_lemon.c
new file mode 100644
index 000000000000..3fbd409974c8
--- /dev/null
+++ b/net/wireshark/files/patch-tools_lemon_lemon.c
@@ -0,0 +1,10 @@
+--- tools/lemon/lemon.c.orig Sat Feb 10 01:09:11 2007
++++ tools/lemon/lemon.c Sat Feb 10 01:09:33 2007
+@@ -2146,6 +2146,7 @@ to follow the previous rule.");
+ struct rule *rp;
+ rp = (struct rule *)malloc( sizeof(struct rule) +
+ sizeof(struct symbol*)*psp->nrhs + sizeof(char*)*psp->nrhs );
++ memset(rp, 0, sizeof(struct rule));
+ if( rp==0 ){
+ ErrorMsg(psp->filename,psp->tokenlineno,
+ "Can't allocate enough memory for this rule.");