source: rtems/spec/build/testsuites/libtests/stackchk02.yml @ b539af8

Last change on this file since b539af8 was b539af8, checked in by Kinsey Moore <kinsey.moore@…>, on 01/26/22 at 22:00:04

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

  • Property mode set to 100644
File size: 400 bytes
Line 
1SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
2build-type: test-program
3cflags: []
4copyrights:
5- Copyright (C) 2022 On-Line Applications Research (OAR)
6cppflags: []
7cxxflags: []
8enabled-by: true
9features: c cprogram
10includes: []
11ldflags: []
12links: []
13source:
14- testsuites/libtests/stackchk02/init.c
15stlib: []
16target: testsuites/libtests/stackchk02.exe
17type: build
18use-after: []
19use-before: []
Note: See TracBrowser for help on using the repository browser.