Quantcast
Channel: Visual Leak Detector for Visual C++ 2008-2015
Viewing all 704 articles
Browse latest View live

Commented Unassigned: vld.ini search path [10548]

$
0
0
In my setup loaded vld.dll is located in different from EXE directory.
Vld.ini is also stored near vld.dll but directory containing vld.dll isn't looked at.
Comments: I would like to have also support for setting path directly and not through registry. I see in source codes, that first working directory is checked and then registry. I set all my configuration files in certain folder relative to executable. I would like to place also vld.ini file there but without modifying registry as registry key is just one per user and not one per application. If I have 2 testing applications with custom location of vld.ini, then your current solution is not sufficient.

Created Unassigned: Regression: false positives from CRT in VS2013 with /MTd [10588]

$
0
0
There's a regression in the HEAD version (introduced around commits f088a96 and 30e6e0a). When an empty main() is run under VS2013 with /MTd, I'm getting 52 memory leaks, example:

```
---------- Block 18 at 0x000000009A7A3F80: 76 bytes ----------
Leak Hash: 0xF720A7CF, Count: 1, Total 76 bytes
Call Stack (TID 2748):
ntdll.dll!RtlAllocateHeap()
f:\dd\vctools\crt\crtw32\heap\malloc.c (58): Project1.exe!_heap_alloc_base()
f:\dd\vctools\crt\crtw32\misc\dbgheap.c (431): Project1.exe!_heap_alloc_dbg_impl() + 0xA bytes
f:\dd\vctools\crt\crtw32\misc\dbgheap.c (239): Project1.exe!_nh_malloc_dbg_impl() + 0x22 bytes
f:\dd\vctools\crt\crtw32\misc\dbgheap.c (601): Project1.exe!_calloc_dbg_impl() + 0x2C bytes
f:\dd\vctools\crt\crtw32\misc\dbgheap.c (652): Project1.exe!_calloc_dbg() + 0x2B bytes
f:\dd\vctools\crt\crtw32\startup\stdenvp.c (127): Project1.exe!_setenvp() + 0x27 bytes
f:\dd\vctools\crt\crtw32\startup\crt0.c (233): Project1.exe!__tmainCRTStartup() + 0x5 bytes
f:\dd\vctools\crt\crtw32\startup\crt0.c (165): Project1.exe!mainCRTStartup()
KERNEL32.DLL!BaseThreadInitThunk() + 0x22 bytes
ntdll.dll!RtlUserThreadStart() + 0x34 bytes
Data:
40 29 7B 9A 3F 00 00 00 20 8C 7A 9A 3F 00 00 00 @){.?... ..z.?...
20 62 E3 38 F7 7F 00 00 7E 00 00 00 02 00 00 00 .b.8.... ~.......
18 00 00 00 00 00 00 00 12 00 00 00 FD FD FD FD ........ ........
43 4F 4D 50 4C 55 53 5F 4E 6F 47 75 69 46 72 6F COMPLUS_ NoGuiFro
6D 53 68 69 6D 3D 31 00 FD FD FD FD mShim=1. ........
```

It's a duplicate of https://vld.codeplex.com/workitem/10446

Example code:
``` c++
#include "vld.h"

int main()
{
return 0;
}
```

Source code checked in, #44cdcac22ca69a2321622b1227e2491a29adb91c

$
0
0
Correct variable name pcrtxxd_vector_new, pmfcd__vector_new_dbg_4p

Source code checked in, #8821601f51f9ae4d90aa33721440356571b82d8b

$
0
0
Fix #6359, #10553, Visual Leak Detector is unloaded before IMalloc interface is released. Capture IMalloc->Realloc context

Source code checked in, #83b3f89ea2bc6963e77ffd0652487e512189892c

$
0
0
Patch ntdll to gain access to LdrpCallInitRoutine() and call RefreshModules() before calling dll entry point. Remove "CRT_USE_TYPE(crtheader->use) == CRT_USE_IGNORE ||" as it is causing the report of fewer leaks than expected in tests

Source code checked in, #62c799bfc75c58ae15d0551d7b962592c4e5ba93

$
0
0
Fix #9519, #9859, #10544, use LoaderLock to serialize any calls which load additional libraries or require access to the Loader Lock.

Source code checked in, #0c2c4368fdbc9e4b477e4b1e268e9c5e40ac2f70

Source code checked in, #8d20b9f50670246b48e79c85ba92d74fc6ec01e8

$
0
0
Clean up VS2013 and VS2015 project files

Source code checked in, #ad0d2795b9fe5dd080931443805cc6f04b77fd88

$
0
0
Fix building with source path with spaces Copy test dependencies prior to the build

Source code checked in, #1af5dfbb7850de905b1f1eed88636dadea163822

$
0
0
Ignore CRT allocations in debug runtime

Source code checked in, #39754a05a69c32b04d4a706035a18d1129541f6c

$
0
0
Add option to skip reporting crt startup allocations as memory leaks Optimise identification and cache of crt leaks Exclude internal modules stack lines for VS2013 Use beginWith and endWith to compare file paths to simplify and make code easier to maintain

Source code checked in, #cad4a84ecaf1c43206e425dd0023ef4d59a772c4

$
0
0
Add debug calls to msvcrt.dll as msvcrtd.dll is not distributed any more.

Source code checked in, #572f66baf8211d6ba1aefccc08ea3127a6d750ae

$
0
0
Expression 'NumChars >= 0' is always true. Unsigned type value is always >= 0

Source code checked in, #523fd08eda95d4b3a133ae8ba629a20a882456e4

$
0
0
Add vld_main test to ensure startup crt allocations are skipped, but dynamic initialization of static and global variables is not. Fix vld_main exit code and add a comment of expected behaviour.

Source code checked in, #3053f0af945fa861c67838b5e4264924d80de8bf

$
0
0
Avoid access violation exceptions when calling ImageDirectoryEntryToDataEx in cases where the module has already unloaded by using parameter Base = NULL.

Source code checked in, #5c988df9dc6cd4fa41b86d2242f43e6f5222404c

$
0
0
In RestoreImport get the real address by calling g_vld._RGetProcAddress. Improve Debug Reports information to more readable format and display after hook or unhook was completed successfully.

Source code checked in, #2d94816ab2ca2159c5c4c94ab0bf915886283ea8

$
0
0
Add vld_ComTest (after compilation the DLL should register successfully Add vld_unload test (loads and unloads two dlls and observes the loading/unloading behaviour of vld library) Fix build configurations Ignore ComTest generated files

Source code checked in, #2d27a9371d1c70540160801818fd8f37e27bc8cd

Source code checked in, #cb85ae53f0fdab05e0509c45e633466539cec0bf

Source code checked in, #f1ba62bcd2a0ea06ddaea598859a8dad2d7431b3

$
0
0
Update VS2013 and 2015 projects and solutions
Viewing all 704 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>