[Scummvm-cvs-logs] scummvm master -> 88aa12387f433009c0de686f080f4af112d381a1

Strangerke Strangerke at scummvm.org
Fri Mar 7 19:35:14 CET 2014


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
88aa12387f TUCKER: Avoid a potential string overrun by using strlcpy instead of strcpy


Commit: 88aa12387f433009c0de686f080f4af112d381a1
    https://github.com/scummvm/scummvm/commit/88aa12387f433009c0de686f080f4af112d381a1
Author: Strangerke (strangerke at scummvm.org)
Date: 2014-03-07T19:33:31+01:00

Commit Message:
TUCKER: Avoid a potential string overrun by using strlcpy instead of strcpy

Changed paths:
    engines/tucker/resource.cpp



diff --git a/engines/tucker/resource.cpp b/engines/tucker/resource.cpp
index af69651..b9aa111 100644
--- a/engines/tucker/resource.cpp
+++ b/engines/tucker/resource.cpp
@@ -279,7 +279,7 @@ Audio::RewindableAudioStream *CompressedSound::load(CompressedSoundType type, in
 
 void TuckerEngine::loadImage(const char *fname, uint8 *dst, int type) {
 	char filename[80];
-	strcpy(filename, fname);
+	Common::strlcpy(filename, fname, sizeof(filename));
 
 	Common::File f;
 	if (!f.open(filename)) {






More information about the Scummvm-git-logs mailing list