From 2f13a02ae7707be8b9636a29e8bf79240d1acdd7 Mon Sep 17 00:00:00 2001 From: Brett Gordon Date: Sat, 27 May 2017 00:19:06 -0400 Subject: [PATCH] check for default program load address --- Kernel/syscall_exec16.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Kernel/syscall_exec16.c b/Kernel/syscall_exec16.c index 71b5c8c4..bdc4456a 100644 --- a/Kernel/syscall_exec16.c +++ b/Kernel/syscall_exec16.c @@ -137,7 +137,10 @@ arg_t _execve(void) udata.u_error = ENOEXEC; goto nogood2; } + progload = (*(uint8_t *)(buf + 7)) << 8; + if ( ! progload ) + progload = PROGLOAD; top = *(uint16_t *)(buf + 8); if (top == 0) /* Legacy 'all space' binary */ -- 2.34.1