Skip to content

Harden C11 allocator and IO callbacks#432

Merged
syoyo merged 1 commit into
releasefrom
c11-allocator-io-hardening
Jun 19, 2026
Merged

Harden C11 allocator and IO callbacks#432
syoyo merged 1 commit into
releasefrom
c11-allocator-io-hardening

Conversation

@syoyo

@syoyo syoyo commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add bounded/aligned allocator hooks and optional custom byte I/O callbacks for the C11 loader
  • enforce input-size limits across memory, file, MTL, and callback paths
  • add regression tests for allocator failures, invalid allocator structs, and callback I/O edge cases

Tests

  • env ASAN_OPTIONS=detect_leaks=0 make -C tests check_c

@syoyo syoyo merged commit 45636bd into release Jun 19, 2026
30 checks passed
@syoyo syoyo deleted the c11-allocator-io-hardening branch June 19, 2026 10:42
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