Commit 27cdd024 authored by Minhua Wu's avatar Minhua Wu
Browse files

trunk: modify rnnlm buffer overrun

git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@4775 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
parent 7f284221
......@@ -11,4 +11,7 @@ fi
echo "Installing RNNLM-HS 0.1b"
cd rnnlm-hs-0.1b
if grep -q '#define MAX_STRING 100' rnnlm.c ; then
patch <../extras/rnnlm.patch
fi
make
Index: rnnlm.c
===================================================================
--- rnnlm.c (revision 4774)
+++ rnnlm.c (working copy)
@@ -20,7 +20,7 @@
#include <pthread.h>
#include <assert.h>
-#define MAX_STRING 100
+#define MAX_STRING 256
#define MAX_SENTENCE_LENGTH 10000
#define MAX_CODE_LENGTH 40
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment