-
Notifications
You must be signed in to change notification settings - Fork 256
Open
Labels
gen-cRelated to the C code generatorRelated to the C code generator
Description
Summary
This issue buckets several problems in wit-bindgen c to avoid opening many separate issues at once.
Each sub-item is independently reproducible and either:
- triggers a panic, or
- exhibits timeout (potential DoS).
If you prefer, I can split this bucket into separate issues.
Environment
- wit-bindgen-cli: 0.47.0
- OS: Ubuntu 22.04.5 LTS (x86_64)
Sub-issues (details in comments)
- Slowdown on deep
option<...>type aliases. - Panic on
flagswith >64 fields. worldimport/export same name triggers duplicate symbol panic.- Resource method vs free-function name collision triggers duplicate symbol panic.
- Semver sanitization collision (
-vs+) triggers duplicate symbol panic. - Very deep direct
option<...>nesting causes hang (even stack overflow).
Metadata
Metadata
Assignees
Labels
gen-cRelated to the C code generatorRelated to the C code generator