diff options
| author | Conrad Kostecki <conikost@gentoo.org> | 2025-11-13 23:03:23 +0100 |
|---|---|---|
| committer | Conrad Kostecki <conikost@gentoo.org> | 2025-11-13 23:03:40 +0100 |
| commit | dbccaf407624d90b06b1d07b11cf04cc9f2a08b8 (patch) | |
| tree | a6de21a395df8054e9d13c69867343e9be2910be /app-emulation/86Box/files/86Box-4.2.1-crashfix-3.patch | |
| parent | 24cd0b17044f06ed5dde128666421438235ec08e (diff) | |
| download | gentoo-dbccaf407624d90b06b1d07b11cf04cc9f2a08b8.tar.gz gentoo-dbccaf407624d90b06b1d07b11cf04cc9f2a08b8.tar.bz2 gentoo-dbccaf407624d90b06b1d07b11cf04cc9f2a08b8.zip | |
app-emulation/86Box: drop 4.2.1-r2, 5.0, 5.1
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-emulation/86Box/files/86Box-4.2.1-crashfix-3.patch')
| -rw-r--r-- | app-emulation/86Box/files/86Box-4.2.1-crashfix-3.patch | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/app-emulation/86Box/files/86Box-4.2.1-crashfix-3.patch b/app-emulation/86Box/files/86Box-4.2.1-crashfix-3.patch deleted file mode 100644 index d97f4d274e1d..000000000000 --- a/app-emulation/86Box/files/86Box-4.2.1-crashfix-3.patch +++ /dev/null @@ -1,40 +0,0 @@ -From 6b05602ea4d1593edf8d0fff17e733b182e94637 Mon Sep 17 00:00:00 2001 -From: OBattler <oubattler@gmail.com> -Date: Sun, 5 Jan 2025 22:35:50 +0100 -Subject: [PATCH] QT: Increase buffer size and improve sanity checking when - removing an image. - ---- - src/qt/qt_mediahistorymanager.cpp | 14 +++++++++----- - 1 file changed, 9 insertions(+), 5 deletions(-) - -diff --git a/src/qt/qt_mediahistorymanager.cpp b/src/qt/qt_mediahistorymanager.cpp -index 2acdc8e5bb..d548c0779c 100644 ---- a/src/qt/qt_mediahistorymanager.cpp -+++ b/src/qt/qt_mediahistorymanager.cpp -@@ -336,16 +336,20 @@ MediaHistoryManager::removeMissingImages(device_index_list_t &device_history) - continue; - } - -- char temp[MAX_IMAGE_PATH_LEN -1] = { 0 }; -+ char temp[MAX_IMAGE_PATH_LEN * 2] = { 0 }; - - if (path_abs(checked_path.toUtf8().data())) { - if (checked_path.length() > (MAX_IMAGE_PATH_LEN - 1)) -- fatal("removeMissingImages(): checked_path.length() > 2047\n"); -+ fatal("removeMissingImages(): checked_path.length() > %i\n", MAX_IMAGE_PATH_LEN - 1); - else - snprintf(temp, (MAX_IMAGE_PATH_LEN - 1), "%s", checked_path.toUtf8().constData()); -- } else -- snprintf(temp, (MAX_IMAGE_PATH_LEN - 1), "%s%s%s", usr_path, -- path_get_slash(usr_path), checked_path.toUtf8().constData()); -+ } else { -+ if ((strlen(usr_path) + strlen(path_get_slash(usr_path)) + checked_path.length()) > (MAX_IMAGE_PATH_LEN - 1)) -+ fatal("removeMissingImages(): Combined absolute path length > %i\n", MAX_IMAGE_PATH_LEN - 1); -+ else -+ snprintf(temp, (MAX_IMAGE_PATH_LEN - 1), "%s%s%s", usr_path, -+ path_get_slash(usr_path), checked_path.toUtf8().constData()); -+ } - path_normalize(temp); - - QString qstr = QString::fromUtf8(temp); |
