Skip to content

kernel: fix dangling multiboot cmdline and libc env pointers#2371

Open
uadhran wants to merge 1 commit into
includeos:mainfrom
uadhran:fix/multiboot-cmdline-lifetime
Open

kernel: fix dangling multiboot cmdline and libc env pointers#2371
uadhran wants to merge 1 commit into
includeos:mainfrom
uadhran:fix/multiboot-cmdline-lifetime

Conversation

@uadhran

@uadhran uadhran commented Jul 9, 2026

Copy link
Copy Markdown

Summary

Closes: #2368

Test plan

  • nix-build unittests.nix — 85/85 passed
  • Confirmed no dangling-assignment warning on multiboot.cpp in the unit build log
  • Full ./test/test.sh integration suite not run

Store the bootloader-provided multiboot cmdline pointer instead of
.data() from a temporary pmr::string. Keep early-boot free of
strdup/malloc. Use static storage for init_libc env strings.

Tested: nix-build unittests.nix — 85/85 passed

Closes: includeos#2368
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

multiboot cmdline stores dangling pointer after pmr::string change (#2273)

1 participant