Skip to content

utils: make fallback realpath safe#53

Open
cyberman wants to merge 1 commit intonetsurf-browser:masterfrom
cyberman:fix/core-realpath-fallback
Open

utils: make fallback realpath safe#53
cyberman wants to merge 1 commit intonetsurf-browser:masterfrom
cyberman:fix/core-realpath-fallback

Conversation

@cyberman
Copy link

@cyberman cyberman commented Mar 1, 2026

  • The #ifndef HAVE_REALPATH fallback used an unbounded strcpy() into a caller-provided buffer.
  • Make the fallback safe by supporting only the allocating form (realpath(path, NULL)), and failing with errno for the non-NULL buffer form.

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.

1 participant