[Scummvm-cvs-logs] scummvm master -> 00a0a412bb52106982dbfaae3c8c0ab3de396dd6

Strangerke Strangerke at scummvm.org
Fri May 30 21:34:56 CEST 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:
00a0a412bb CRUISE: Add a safeguard to avoid a buffer overflow


Commit: 00a0a412bb52106982dbfaae3c8c0ab3de396dd6
    https://github.com/scummvm/scummvm/commit/00a0a412bb52106982dbfaae3c8c0ab3de396dd6
Author: Strangerke (strangerke at scummvm.org)
Date: 2014-05-30T21:33:38+02:00

Commit Message:
CRUISE: Add a safeguard to avoid a buffer overflow

Changed paths:
    engines/cruise/volume.cpp



diff --git a/engines/cruise/volume.cpp b/engines/cruise/volume.cpp
index 5b125a5..54bc6f6 100644
--- a/engines/cruise/volume.cpp
+++ b/engines/cruise/volume.cpp
@@ -240,7 +240,7 @@ int16 findFileInDisks(const char *name) {
 	int disk;
 	int fileIdx;
 
-	strcpy(fileName, name);
+	Common::strlcpy(fileName, name, sizeof(fileName));
 	strToUpper(fileName);
 
 	if (!volumeDataLoaded) {






More information about the Scummvm-git-logs mailing list