From 7a40524f9bdbe2febce88ccbf34e763aac635ded Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 18 Oct 2013 09:08:05 +0200 Subject: bugfix: potential misadressing when trimming cstr's --- runtime/stringbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/stringbuf.c b/runtime/stringbuf.c index 6a6f7c81..13f38710 100644 --- a/runtime/stringbuf.c +++ b/runtime/stringbuf.c @@ -564,7 +564,7 @@ rsRetVal cstrTrimTrailingWhiteSpace(cstr_t *pThis) } /* i now is the new string length! */ pThis->iStrLen = i; - pThis->pBuf[pThis->iStrLen] = '0'; /* we always have this space */ + pThis->pBuf[pThis->iStrLen] = '\0'; /* we always have this space */ done: return RS_RET_OK; } -- cgit v1.2.3 From 09f1216c5e4cc3c9f4906a86680b5290808d2166 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 18 Oct 2013 09:19:59 +0200 Subject: doc: add last bugfix to ChangeLog --- ChangeLog | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 93b08f0f..7f7574bf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,9 @@ Version 7.4.5 [v7.4-stable] 2013-09-?? string comparisons - omelasticsearch: add failed.httprequests stats counter - bugfix: segfault if re_extract() function was used and no match found +- bugfix: potential misadressing on startup if property-filter was used + This could happen if the property name was longer than 127 chars, a case + that would not happen in practice. - bugfix: omelasticsearch: correct failed.http stats counter - bugfix: omelasticsearch: did not correctly initialize stats counters - bugfix: omelasticsearch: failed.es counter was only maintained in bulk mode -- cgit v1.2.3