[Scummvm-git-logs] scummvm master -> dcb1fe586a3eb7f953b843c6e4f4ef98fc792278
aquadran
aquadran at gmail.com
Mon Mar 15 19:36:13 UTC 2021
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:
dcb1fe586a ICB: Fixed misaligned malloc/new with MemoryStream
Commit: dcb1fe586a3eb7f953b843c6e4f4ef98fc792278
https://github.com/scummvm/scummvm/commit/dcb1fe586a3eb7f953b843c6e4f4ef98fc792278
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2021-03-15T20:36:07+01:00
Commit Message:
ICB: Fixed misaligned malloc/new with MemoryStream
Changed paths:
engines/icb/res_man_pc.cpp
diff --git a/engines/icb/res_man_pc.cpp b/engines/icb/res_man_pc.cpp
index ed26074f3c..aef162fd07 100644
--- a/engines/icb/res_man_pc.cpp
+++ b/engines/icb/res_man_pc.cpp
@@ -65,7 +65,7 @@ Common::SeekableReadStream *openDiskFileForBinaryStreamRead(const Common::String
return nullptr;
}
int32 size = f->size();
- byte *data = new byte[size];
+ byte *data = (byte *)malloc(size);
f->read(data, size);
f->close();
delete f;
More information about the Scummvm-git-logs
mailing list