diff options
author | Kinsey Moore <kinsey.moore@oarcorp.com> | 2022-01-26 16:00:04 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2022-01-27 13:07:30 -0600 |
commit | b539af865ea3217a50c8e4cbf0f668807c134356 (patch) | |
tree | 52af413092bfe40c3fde77d8935219245f151169 /testsuites/libtests/stackchk02/stackchk02.doc | |
parent | Remove obsolete rtems_gxx_*() implementation (diff) | |
download | rtems-b539af865ea3217a50c8e4cbf0f668807c134356.tar.bz2 |
cpukit: Prevent error with disabled stack checker
When the stack checker is not enabled, the stack checker reporting
function can still be called. This prevents that call from performing a
null memory access in trying to find the high water mark if the stack
checker was never initialized.
This also introduces a test to ensure this call does not cause a crash.
Closes #4588
Diffstat (limited to '')
-rw-r--r-- | testsuites/libtests/stackchk02/stackchk02.doc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuites/libtests/stackchk02/stackchk02.doc b/testsuites/libtests/stackchk02/stackchk02.doc new file mode 100644 index 0000000000..7907f216a8 --- /dev/null +++ b/testsuites/libtests/stackchk02/stackchk02.doc @@ -0,0 +1,16 @@ +# COPYRIGHT (c) 2022. +# On-Line Applications Research Corporation (OAR). +# The license and distribution terms for this file may be +# found in the file LICENSE in this distribution or at +# http://www.rtems.org/license/LICENSE. +# +This file describes the directives and concepts tested by this test set. + +test set name: stackchk02 + +directives: + + rtems_stack_checker_report_usage + +concepts: + + This task verifies that the stack checker will not perform bad + accesses when not properly enabled. |