Skip to content

Refactor VirtualFile memory management and enhance robustness - #71

Merged
dogo merged 1 commit into
masterfrom
refactor/VirtualFile
Sep 9, 2024
Merged

Refactor VirtualFile memory management and enhance robustness#71
dogo merged 1 commit into
masterfrom
refactor/VirtualFile

Conversation

@dogo

@dogo dogo commented Sep 9, 2024

Copy link
Copy Markdown
Owner
  • Correctly handle memory allocation in oslReadEntireFileToMemory:
  • Standardize memory block handling with BLOCK_SIZE macro for consistent allocation.
  • Enhance error handling throughout the VirtualFile functions to ensure proper memory cleanup.
  • Add comments for clarity and consistency in error handling and memory allocation logic.
  • Ensure safe buffer management in functions like vfsMemGets to prevent buffer overflows.

- Correctly handle memory allocation in oslReadEntireFileToMemory:
- Standardize memory block handling with BLOCK_SIZE macro for consistent allocation.
- Enhance error handling throughout the VirtualFile functions to ensure proper memory cleanup.
- Add comments for clarity and consistency in error handling and memory allocation logic.
- Ensure safe buffer management in functions like vfsMemGets to prevent buffer overflows.
@dogo
dogo merged commit 855d7a2 into master Sep 9, 2024
@dogo
dogo deleted the refactor/VirtualFile branch September 9, 2024 17:22
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