mirror of
https://github.com/github/codeql.git
synced 2025-12-22 11:46:32 +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.
5 lines
160 B
Markdown
5 lines
160 B
Markdown
---
|
|
category: minorAnalysis
|
|
---
|
|
* The `semmle.code.cpp.commons.Buffer` library has been enhanced to handle array members of classes that do not specify a size.
|