Examples of errors detected by the V743 diagnostic.


V743. The memory areas must not overlap. Use 'memmove' function.


Stickies

V743 The memory areas must not overlap. Use 'memmove' function. - ADDITIONAL IN CURRENT stickyinstaller.cpp 226


#define EXPORTVERSION18  "StickyExport V1.8\032"

int LoadStickyData (void)
{
  char  chkBuff[32];
  int   versionLen = strlen (EXPORTVERSION18);
  ....
  memcpy (chkBuff, chkBuff+1, versionLen-1);
  ....
}


Do you make errors in the code?

Check your code
with PVS-Studio

Static code analysis
for C, C++ and C#

goto PVS-Studio;