mirror of
https://github.com/BoredDevNL/BoredOS.git
synced 2026-05-15 18:58:40 +00:00
14 lines
445 B
C
14 lines
445 B
C
// Copyright (c) 2023-2026 Chris (boreddevnl)
|
|
// This software is released under the GNU General Public License v3.0. See LICENSE file for details.
|
|
// This header needs to maintain in any file it is present in, as per the GPL license terms.
|
|
#include "syscall.h"
|
|
|
|
int main() {
|
|
const char* msg = "Attempting to crash via null dereference...\n";
|
|
sys_write(1, msg, 45);
|
|
|
|
volatile int* p = (int*)0;
|
|
*p = 123;
|
|
|
|
return 0;
|
|
}
|