From 29511b107d03dbc1df9cbe4fa56c76624fde25b1 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 22 Dec 2016 15:26:28 +0100 Subject: [PATCH] sqlops: Increase size of static escape buffer The code assumes that all characters require escaping and the maximum input string length right now is 1023. When the ss7ops module is used the length of a IAM is longer than this. Increase the static buffer to 8k. This increases the memory usage of each process by 7168 bytes. --- src/modules/sqlops/sql_trans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/sqlops/sql_trans.c b/src/modules/sqlops/sql_trans.c index 464d9f822d3..5cf6be1c14a 100644 --- a/src/modules/sqlops/sql_trans.c +++ b/src/modules/sqlops/sql_trans.c @@ -31,7 +31,7 @@ #include "sql_trans.h" -#define TR_BUFFER_SIZE 2048 +#define TR_BUFFER_SIZE 8192 static int _tr_eval_sql_val(pv_value_t *val)