mirror of
https://github.com/github/codeql.git
synced 2025-12-22 03:36:30 +01:00
Currently the extractor incorrectly emits 0 for the array `data` below:
```
struct myStruct { // c
...
char data[]; // v
};
```
This will change in the future, and no size will be emitted anymore.
This commit makes sure `Buffer.qll` handles arrays without sizes.
160 B
160 B
category
| category |
|---|
| minorAnalysis |
- The
semmle.code.cpp.commons.Bufferlibrary has been enhanced to handle array members of classes that do not specify a size.