mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-18 06:20:42 +01:00
Commit 96b5fce introduced regressions, leading to potential misadressing and a very probable memory leak. This commit fixes the issues and hardens the module to better detect some error cases in the future. It also adds valgrind-based testbench tests which ensure that no pointer errors exist. If they had been in place, the regressions would never have been undetected. Note that commit 96b5fce was introduced in 8.23.0 on Nov, 15th 2016. Many thanks to Yaroslav Bo for alerting me on the root problem and providing a very good analysis and guidance. see also https://github.com/rsyslog/rsyslog/issues/1906 closes https://github.com/rsyslog/rsyslog/issues/1962 see also https://github.com/rsyslog/rsyslog/issues/1964
14 lines
532 B
Bash
Executable File
14 lines
532 B
Bash
Executable File
#!/bin/bash
|
|
# This file is part of the rsyslog project, released under ASL 2.0
|
|
echo ===============================================================================
|
|
echo \[es-basic-bulk\]: basic test for elasticsearch functionality
|
|
. $srcdir/diag.sh init
|
|
. $srcdir/diag.sh es-init
|
|
. $srcdir/diag.sh startup-vg es-basic-bulk.conf
|
|
. $srcdir/diag.sh injectmsg 0 10000
|
|
. $srcdir/diag.sh shutdown-when-empty
|
|
. $srcdir/diag.sh wait-shutdown-vg
|
|
. $srcdir/diag.sh es-getdata 10000
|
|
. $srcdir/diag.sh seq-check 0 9999
|
|
. $srcdir/diag.sh exit
|