Files
codeql/cpp/ql/lib/change-notes/2022-04-22-no-size-array.md
Jeroen Ketema dee0f09197 C++: Cover variable sized member arrays without a size in Buffer.qll
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.
2022-04-22 16:57:24 +02:00

160 B

category
category
minorAnalysis
  • The semmle.code.cpp.commons.Buffer library has been enhanced to handle array members of classes that do not specify a size.