From 894ec8de0682fb90547936f02825e22719950c00 Mon Sep 17 00:00:00 2001 From: Omar Berrow Date: Sun, 14 Sep 2025 20:37:05 -0400 Subject: [PATCH] hyper: Move command line limit to 512 Signed-off-by: Omar Berrow --- loader/boot_protocol/ultra.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/loader/boot_protocol/ultra.c b/loader/boot_protocol/ultra.c index 1d032c6..90553a0 100644 --- a/loader/boot_protocol/ultra.c +++ b/loader/boot_protocol/ultra.c @@ -903,7 +903,7 @@ static void load_all_modules(struct config *cfg, struct loadable_entry *le, &module_value, true)); } -#define MAX_CMDLINE_LEN 256 +#define MAX_CMDLINE_LEN 512 static bool get_cmdline(struct config *cfg, struct loadable_entry *le, char *storage, struct string_view *out_str) @@ -912,7 +912,10 @@ static bool get_cmdline(struct config *cfg, struct loadable_entry *le, return false; if (out_str->size > MAX_CMDLINE_LEN) - oops("command line is too big %zu vs max 256\n", out_str->size); + oops( + "command line is too big %zu vs max " TO_STR(MAX_CMDLINE_LEN) "\n", + out_str->size + ); memcpy(storage, out_str->text, out_str->size);