Skip to content

Conversation

@sonicfromnewyoke
Copy link

@sonicfromnewyoke sonicfromnewyoke commented Dec 30, 2025

Problem

Mithril's ELF loader getString() function doesn't properly handle string parsing from ELF string tables when the requested maximum length would exceed section bounds.

Summary of Changes

  • migrate fn get_string_in_section logic
  • move sbpf-related errors into sbpf package
  • replace some unneeded formatings like fmt.Sprintf("ja") with strings directly, like "ja"

closes #118

cc @smcio

@sonicfromnewyoke sonicfromnewyoke force-pushed the sonic/fix-elf-get-string-in-section branch from e84910b to f0b8896 Compare January 2, 2026 15:14
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.

[F-D10] String Parsing in ELF Loader Doesn't Match Agave Behavior

1 participant