| 标题 | dvidelabs flatcc v0.6.3 Memory Leak |
|---|
| 描述 | define_fb_name() inserts reserved keywords into a dedicated keyword_index hash table (src/compiler/semantics.c:260). The parser's teardown (fb_clear_parser) frees the attribute_index and include_index tables but omits keyword_index, so every schema parse leaks the keyword table (~1024 bytes). For any persistent process (fuzz harness, daemon, IDE language server) that parses schemas repeatedly, memory grows without bound.
Affected versions: flatcc HEAD v0.6.3
Severity: Medium (deterministic per-parse memory leak; DoS by resource exhaustion in persistent processes)
CWE: CWE-401 (Improper Release of Memory Before Removing Last Reference) |
|---|
| 来源 | ⚠️ https://github.com/dvidelabs/flatcc/issues/389 |
|---|
| 用户 | lrrh (UID 100159) |
|---|
| 提交 | 2026-08-08 10時37分 (1 月前) |
|---|
| 管理 | 2026-09-13 15時01分 (1 month later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 403290 [Dvidelabs flatcc 直到 0.6.3 src/Compiler/semantics.c fb_clear_parser 拒绝服务] |
|---|
| 积分 | 20 |
|---|