DynamoRIO / DynamoRIO/drmemory
False reports under SetEnvironmentVariable
- Dominant language
- C
- Stars
- 2.7k
- Forks
- 290
- PR merge metrics
- No merged PRs in 30d
Description
_From [timurrrr@google.com](https://code.google.com/u/timurrrr@google.com/) on September 29, 2010 10:19:39_
As of r57 , the following code:
===test.c===
#include
int main(void) {
SetEnvironmentVariableA("FOO", "foo");
return 0;
}
#
(compiled with "cl /Zi /MTd")
gives one report:
Error `#1`: UNADDRESSABLE ACCESS: writing 0x000117e8-0x000117e9 1 byte(s) within 0x000117e8-0x000117ec
@0:00:01.641 in thread 2460
0x7c9022ad ntdll.dll!memmove
??:0
0x7c923a1a ntdll.dll!RtlDestroyEnvironment
??:0
0x7c83351a KERNEL32.dll!SetEnvironmentVariableA
??:0
0x00444163 test.exe!main
z:\dr-sandbox\issues\env\test.c:4
_Original issue: http://code.google.com/p/drmemory/issues/detail?id=59_
Contributor guide
Assessment
This issue has not been assessed yet.