DynamoRIO / DynamoRIO/drmemory
False positives with MinGW g++ 8.2.0
- Dominant language
- C
- Stars
- 2.7k
- Forks
- 290
- PR merge metrics
- No merged PRs in 30d
Description
I have a very simple bit of code I am trying to use as a teaching example.
```
#include
int main() {
int* array = new int[10];
for (int i = 0; i <= 9; i++) {
std::cout << array[i] << std::endl;
}
delete[] array;
}
```
When I initially ran DR Memory I got a reasonable result saying UNINITIALIZED READ.
However my students got results of UNADDRESSABLE ACCESS, UNINITIALIZED READ and POSSIBLE LEAK.
I realized I was using an older version of the g++ compiler (7.3.0) than they were. I updated to 8.2.0 (using mingw) and now I get the same error as they do. Same code, same version of dr memory (2.2.0), only thing that changed for me was removing the old mingw and installing a newer one.
Contributor guide
Assessment
This issue has not been assessed yet.