DynamoRIO / DynamoRIO/drmemory

Unaddressable access under _putenv

Open
#28 0 comments 0 reactions 0 assignees View on GitHub
Bug-FalsePositive Migrated OpSys-Windows Priority-Medium
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 August 13, 2010 11:24:19_

On r33 /v1.2.1 on Windows XP
#

#include

int main() {
_putenv("VAR=VALUE");
return 0;
}
#

built with "cl /Zi test.cpp" gives the following report:

Error `#1`: UNADDRESSABLE ACCESS: writing 0x000117f8-0x000117f9 1 byte(s) within 0x000117f8-0x000117fc
@0:00:01.219 in thread 14188
0x7c9022ad ntdll.dll!memmove
??:0
0x7c923a1a ntdll.dll!RtlDestroyEnvironment
??:0
0x7c83351a KERNEL32.dll!SetEnvironmentVariableA
??:0
0x00402111 test.exe!__crtsetenv
f:\dd\vctools\crt_bld\self_x86\crt\src\setenv.c:338
0x00401156 test.exe!_putenv_helper
f:\dd\vctools\crt_bld\self_x86\crt\src\putenv.c:268
0x0040125a test.exe!_putenv
f:\dd\vctools\crt_bld\self_x86\crt\src\putenv.c:78
0x0040101d test.exe!main
z:\dr-sandbox\issues\putenv\test.cpp:4
0x004014ec test.exe!__tmainCRTStartup
f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c:327
0x7c817077 KERNEL32.dll!RegisterWaitForInputIdle
??:0

_Original issue: http://code.google.com/p/drmemory/issues/detail?id=28_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.