strcpy()with an argument that specifically contains multiple null bytes.
strcpy()only copies a single terminating null character into the target buffer instead of copying the required double null bytes in the
addKeysToRegistry()function. As a consequence, a garbage registry entry can be created. The additional
arsizeparameter is erroneously set to contain two null bytes and the following call to
RegSetValueEx()claims to be passing in a multi-string value, though this may not be true.