Skip to content

Fix VFS crash vulnerabilities (#18827)#18895

Open
1150654748m-dev wants to merge 1 commit intolibretro:masterfrom
1150654748m-dev:fix-vfs-crash-18827-1775274488
Open

Fix VFS crash vulnerabilities (#18827)#18895
1150654748m-dev wants to merge 1 commit intolibretro:masterfrom
1150654748m-dev:fix-vfs-crash-18827-1775274488

Conversation

@1150654748m-dev
Copy link
Copy Markdown

This PR fixes VFS crash vulnerabilities reported in #18827.

Changes:

  • Add null pointer check for path parameter
  • Validate path length to prevent buffer overflow
  • Use safe string copy with strncpy
  • Prevent double-free vulnerability

Testing:

  • Code compiles without warnings
  • Null pointer handling tested

Bounty: Task #18827 - $170

Fixes libretro#18827

- Add null pointer check for path parameter
- Validate path length to prevent buffer overflow
- Use safe string copy with strncpy
- Prevent double-free in resource cleanup
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