libqb/tests
Chrissie Caulfield 1bbaa929b7
log: fix potential overflow with long log messages (#490)
qb_vsnprintf_serialize was called with 'max_size' as the
limiting number for the length of the formatted log
message. But the buffer also needs to contain the
log header (given by 'actual_size'), so we now pass
't->max_line_length' as the maximum length of the
formatted log message to limit space to the actual 
bytes left

Also added error checks to the blackbox calls at
the end of the test, as these now provide a proper
test that the BB is functioning. Before they were
masking failures.
2023-07-20 07:19:01 +01:00
..
_failure_injection.c tests: start stdlib failures injection effort with unlink{,at} + test 2016-11-04 19:06:08 +01:00
_failure_injection.h tests: start stdlib failures injection effort with unlink{,at} + test 2016-11-04 19:06:08 +01:00
_libstat_wrapper.c tests: allow -j to work (#485) 2023-05-26 20:21:43 +02:00
_syslog_override.c lib: Fix some minor warnings from newer compilers 2019-12-11 11:14:47 +00:00
_syslog_override.h Feature: allow changing the identifier for syslog (+tests) 2016-02-18 11:30:14 +01:00
.gitignore API: introduce alternative, header-based versioning 2016-04-01 23:19:40 +02:00
bench-log.c By default don't build in the slow benchlog 2011-11-25 11:12:27 +11:00
blackbox-segfault.sh tests: allow blackbox-segfault.sh to run out-of-tree 2019-03-26 11:31:05 +00:00
bmc.c Deprecate qb_util_set_log_function() 2012-01-24 16:00:05 +11:00
bmcpt.c Low: sanitize import of <qb/qbarray.h> symbols 2016-10-17 17:25:50 +02:00
bms.c Low: sanitize import of <qb/qbarray.h> symbols 2016-10-17 17:25:50 +02:00
check_array.c tests: Remove deprecated check macros (#412) 2020-07-29 14:06:22 +01:00
check_common.h tests: refactor test case defs using versatile add_tcase macro 2016-03-01 15:11:38 +01:00
check_ipc.c tests: allow -j to work (#485) 2023-05-26 20:21:43 +02:00
check_list.c UPDATED: doc (ABI comparison) and various other fixes (#324) 2018-09-25 08:38:37 +01:00
check_log.c log: fix potential overflow with long log messages (#490) 2023-07-20 07:19:01 +01:00
check_loop.c tests: Close race condition in check_loop (#480) 2023-01-06 13:30:51 +00:00
check_map.c trie: Don't assume that chars are unsigned < 126 (#386) 2020-03-09 08:14:39 +00:00
check_rb.c tests: Remove deprecated check macros (#412) 2020-07-29 14:06:22 +01:00
check_tlist.c Implement heap based timer list (#439) 2021-03-18 07:27:25 +00:00
check_util.c tests: make qb logging under check always dispose the memory 2017-09-18 10:30:40 +01:00
crash_test_dummy.c Deal better with corrupt blackbox files. 2013-04-02 13:52:57 +11:00
file_change_bytes.c Low: tests: Fixes compile time issue with make check 2014-01-20 16:59:52 -06:00
format_compare_speed.c warnings cleanup: Wformat: sign-correct PRIu32 specifiers as appropriate 2017-12-21 01:50:15 +01:00
loop.c Deprecate qb_util_set_log_function() 2012-01-24 16:00:05 +11:00
make-log-test.sh TEST: change the script to .sh and generated c file to auto_ 2012-01-16 22:18:39 +11:00
Makefile.am test - fix test dependancies (#489) 2023-06-10 05:21:55 +02:00
print_ver.c UPDATED: doc (ABI comparison) and various other fixes (#324) 2018-09-25 08:38:37 +01:00
rbreader.c tests: make qb logging under check always dispose the memory 2017-09-18 10:30:40 +01:00
rbwriter.c tests: make qb logging under check always dispose the memory 2017-09-18 10:30:40 +01:00
resources.test tests: allow -j to work (#485) 2023-05-26 20:21:43 +02:00
run-coverity test: add helper script for running coverity 2015-09-09 15:54:26 -05:00
sock_ipc_wrapper.test tests: allow -j to work (#485) 2023-05-26 20:21:43 +02:00
start.test tests: allow -j to work (#485) 2023-05-26 20:21:43 +02:00
test.conf.in Deal better with corrupt blackbox files. 2013-04-02 13:52:57 +11:00