Skip to content

Commit

Permalink
Enhance memory management and validation in runtime
Browse files Browse the repository at this point in the history
- Added null checks for Region and memory data to prevent runtime errors.
- Improved validation logic in Region.Validate to include checks for zero capacity and alignment.
- Updated readMemory and writeMemory functions to ensure proper alignment and bounds checking.
- Refactored input data handling in WazeroRuntime to validate and write environment, info, and message data with proper alignment.
- Enhanced error reporting for memory operations and JSON validation to improve debugging capabilities.
  • Loading branch information
faddat committed Jan 24, 2025
1 parent d89e477 commit 61dda5c
Show file tree
Hide file tree
Showing 2 changed files with 333 additions and 256 deletions.
Loading

0 comments on commit 61dda5c

Please # to comment.