From 5cd84ad93f7d67cdaa134707fcce1b1ef85183ad Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 26 Feb 2021 18:40:37 +0100 Subject: Full UBSan support - many fixes! --- kernel/features/load.c | 1 - kernel/main.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'kernel') diff --git a/kernel/features/load.c b/kernel/features/load.c index 9024c82..8a4aae3 100644 --- a/kernel/features/load.c +++ b/kernel/features/load.c @@ -17,7 +17,6 @@ void proc_load(struct proc *proc, void *data) int bin_load(const char *path, struct proc *proc) { - // TODO: Remove hardcoded filesize struct stat s = { 0 }; vfs_stat(path, &s); char *data = malloc(s.size); diff --git a/kernel/main.c b/kernel/main.c index 2112541..6be31bd 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -26,7 +26,7 @@ void kernel_main(struct vid_info *vid_info) serial_print("\nKernel was compiled at " __TIME__ " on " __DATE__ "\n"); serial_print("Serial connected.\n"); - heap_init(0x00f00000 + rand()); + heap_init(0x00f00000); boot_passed = vid_info; -- cgit v1.2.3