UB: variable length array bound evaluates to non-positive value 0
Open
- Dominant language
- C++
- Stars
- 30.5k
- Forks
- 5.9k
- PR merge metrics
- No merged PRs in 30d
Description
This `controlBufSize` could be 0, which cause UB "variable length array bound evaluates to non-positive value 0"

Contributor guide
Research direction
Start by locating the use of controlBufSize and the variable-length array mentioned in the issue, then inspect how that size is calculated. Reproduce the case where controlBufSize is 0; done means the non-positive variable-length array bound no longer occurs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100