← 返回首页
Harden C11 allocator and IO callbacks by syoyo · Pull Request #432 · tinyobjloader/tinyobjloader · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

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 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

Hide details View details syoyo merged commit 45636bd into release Jun 19, 2026
30 checks passed
syoyo deleted the c11-allocator-io-hardening branch June 19, 2026 10:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Footer

© 2026 GitHub, Inc.