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 /spec | |
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 'spec')
-rw-r--r-- | spec/build/testsuites/libtests/grp.yml | 2 | ||||
-rw-r--r-- | spec/build/testsuites/libtests/stackchk02.yml | 19 |
2 files changed, 21 insertions, 0 deletions
diff --git a/spec/build/testsuites/libtests/grp.yml b/spec/build/testsuites/libtests/grp.yml index fdb9e4fede..d352c8221c 100644 --- a/spec/build/testsuites/libtests/grp.yml +++ b/spec/build/testsuites/libtests/grp.yml @@ -248,6 +248,8 @@ links: - role: build-dependency uid: stackchk01 - role: build-dependency + uid: stackchk02 +- role: build-dependency uid: stat - role: build-dependency uid: stringto01 diff --git a/spec/build/testsuites/libtests/stackchk02.yml b/spec/build/testsuites/libtests/stackchk02.yml new file mode 100644 index 0000000000..4a4cbf9660 --- /dev/null +++ b/spec/build/testsuites/libtests/stackchk02.yml @@ -0,0 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: test-program +cflags: [] +copyrights: +- Copyright (C) 2022 On-Line Applications Research (OAR) +cppflags: [] +cxxflags: [] +enabled-by: true +features: c cprogram +includes: [] +ldflags: [] +links: [] +source: +- testsuites/libtests/stackchk02/init.c +stlib: [] +target: testsuites/libtests/stackchk02.exe +type: build +use-after: [] +use-before: [] |