Issue |
132065
|
Summary |
Potential OOB access in getMaskVecValue in CGBuiltin.cpp
|
Labels |
new issue
|
Assignees |
|
Reporter |
jurahul
|
This function in CGBuiltin.cpp has this code:
```
if (NumElts < 8) {
int Indices[4];
for (unsigned i = 0; i != NumElts; ++i)
Indices[i] = i;
```
if NulElts > 4, the Indices arrays will be accessed OOB. Might be as simple as bumping the size to 8.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs