Microsoft Open Source | d683ebe | 2023-02-03 11:49:58 +0000 | [diff] [blame] | 1 | // Copyright Microsoft and CHERIoT Contributors. |
2 | // SPDX-License-Identifier: MIT | ||||
3 | |||||
4 | #include "hello.h" | ||||
5 | #include <fail-simulator-on-error.h> | ||||
6 | |||||
7 | /// Thread entry point. | ||||
8 | void __cheri_compartment("hello") entry() | ||||
9 | { | ||||
10 | char maliciousString[] = {'h', 'e', 'l', 'l', 'o'}; | ||||
11 | write(maliciousString); | ||||
12 | write("Non-malicious string"); | ||||
13 | } |