[Scummvm-git-logs] scummvm master -> 2152eb15f9c9684729cb158bf96c42d91e1d2eac

lephilousophe noreply at scummvm.org
Wed Jun 4 18:26:56 UTC 2025


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

Summary:
2152eb15f9 CRYOMNI3D: Fix integer possible overflow


Commit: 2152eb15f9c9684729cb158bf96c42d91e1d2eac
    https://github.com/scummvm/scummvm/commit/2152eb15f9c9684729cb158bf96c42d91e1d2eac
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2025-06-04T20:26:00+02:00

Commit Message:
CRYOMNI3D: Fix integer possible overflow

Fixes CID1551882.

Changed paths:
    engines/cryomni3d/versailles/documentation.cpp


diff --git a/engines/cryomni3d/versailles/documentation.cpp b/engines/cryomni3d/versailles/documentation.cpp
index d6bca630c86..e94795a65e6 100644
--- a/engines/cryomni3d/versailles/documentation.cpp
+++ b/engines/cryomni3d/versailles/documentation.cpp
@@ -1510,7 +1510,7 @@ void Versailles_Documentation::drawRecordData(Graphics::ManagedSurface &surface,
 	backupSurface.copyFrom(surface);
 
 	// This loop tries to adapt the interline space to make all the text fit in the blocks
-	while (true) {
+	while (lineHeight > 0) {
 		_fontManager->setLineHeight(lineHeight);
 		_fontManager->setupBlock(blockContent1);
 		if (!_fontManager->displayBlockText(text)) {




More information about the Scummvm-git-logs mailing list