https://github.com/Microsoft/CNTK
Revision dc65c2b57d857694256f32d962f58d79b4813da1 authored by Namgoo Lee on 31 July 2018, 00:45:32 UTC, committed by Namgoo Lee on 31 July 2018, 01:03:17 UTC
Valgrind sometimes reports "Source and destination overlap in memcpy" on
the overloaded = operator of SmallVector class. Whenever it is reported,
the src address and the dest address of memcpy is actually identical.

The solution in this commit is to check the src and dest address first,
and do memcpy only if they are not identical. This should be enough to
handle the issue, since the only case they overlap is when they are
identical, provided that the m_data is a member of a class.
1 parent 3d753db
History
Tip revision: dc65c2b57d857694256f32d962f58d79b4813da1 authored by Namgoo Lee on 31 July 2018, 00:45:32 UTC
Fix overlapping memcpy reported by valgrind in SmallVector
Tip revision: dc65c2b
File Mode Size
Documentation
Examples
Manual
PretrainedModels
Scripts
Source
Tests
Tools
Tutorials
bindings
external
.clang-format -rw-r--r-- 951 bytes
.gitattributes -rw-r--r-- 3.4 KB
.gitignore -rw-r--r-- 8.4 KB
.gitmodules -rw-r--r-- 367 bytes
CMakeLists.txt -rw-r--r-- 269 bytes
CNTK.Common.props -rw-r--r-- 3.4 KB
CNTK.Cpp.props -rw-r--r-- 10.8 KB
CNTK.sln -rw-r--r-- 264.7 KB
CONTRIBUTING.md -rw-r--r-- 210 bytes
CppCntk.vssettings -rw-r--r-- 10.0 KB
LICENSE.md -rw-r--r-- 1.1 KB
Makefile -rw-r--r-- 69.6 KB
README.md -rw-r--r-- 17.0 KB
ThirdPartyNotices.md -rw-r--r-- 21.0 KB
configure -rwxr-xr-x 37.4 KB

README.md

back to top