facebook / facebook/folly

UB: variable length array bound evaluates to non-positive value 0

Open
#1,765 0 comments 0 reactions 0 assignees View on GitHub
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"

![图片](https://user-images.githubusercontent.com/712433/165732651-f67a9024-774b-4f4f-a6e2-e646293724f8.png)

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.