bytecodealliance / bytecodealliance/wit-bindgen

multiple c bindgen issues

Open
#1,512 6 comments 0 reactions 0 assignees View on GitHub
gen-c
Dominant language
Rust
Stars
1.5k
Forks
286
Avg merge
6h 32m
Merged PRs (30d)
19

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)
1. Slowdown on deep `option<...>` type aliases.
2. Panic on `flags` with >64 fields.
3. `world` import/export same name triggers duplicate symbol panic.
4. Resource method vs free-function name collision triggers duplicate symbol panic.
5. Semver sanitization collision (`-` vs `+`) triggers duplicate symbol panic.
6. Very deep direct `option<...>` nesting causes hang (even stack overflow).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.