diff options
author | Marvin Borner | 2021-02-26 18:40:37 +0100 |
---|---|---|
committer | Marvin Borner | 2021-02-26 18:40:37 +0100 |
commit | 5cd84ad93f7d67cdaa134707fcce1b1ef85183ad (patch) | |
tree | 777ccbcf3034f96a013c402cf05ad23c35b4de0e /kernel | |
parent | 0f00932955521c3c2fb8140176ab72f22172c298 (diff) |
Full UBSan support - many fixes!
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/features/load.c | 1 | ||||
-rw-r--r-- | kernel/main.c | 2 |
2 files changed, 1 insertions, 2 deletions
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; |