17
0

2 Commits

Author SHA256 Message Date
df7a0a4b00 Accepting request 1293430 from X11:XOrg
- u_tigervnc-1.15.0.patch
  * fixed the patch so it hopefully no longer crashes; previously
    the patch converted to a QByteArray instead of a const char *,
    which can lead to a crash, especially in optimized builds;
    adding .constData() to fix this ... (boo#1241959)

OBS-URL: https://build.opensuse.org/request/show/1293430
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/vncmanager-controller?expand=0&rev=13
2025-07-15 14:46:10 +00:00
7599d6ad41 - u_tigervnc-1.15.0.patch
* fixed the patch so it hopefully no longer crashes; previously
    the patch converted to a QByteArray instead of a const char *,
    which can lead to a crash, especially in optimized builds;
    adding .constData() to fix this ... (boo#1241959)

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/vncmanager-controller?expand=0&rev=30
2025-07-15 12:12:12 +00:00
2 changed files with 14 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ diff -u -r -p vncmanager-controller-1.0.1.orig/ManagerConnection.cpp vncmanager-
return false;
}
- if (!XVncExtSetParam(m_display, (QString("Desktop=CONTROLLER_KEY:") + keyBase64).toLatin1())) {
+ if (!XVncExtSetParam(m_display, "Desktop", (QString("CONTROLLER_KEY:") + keyBase64).toLatin1())) {
+ if (!XVncExtSetParam(m_display, "Desktop", (QString("CONTROLLER_KEY:") + keyBase64).toLatin1().constData())) {
return false;
}
@@ -15,7 +15,7 @@ diff -u -r -p vncmanager-controller-1.0.1.orig/ManagerConnection.cpp vncmanager-
// Set back the original name
- XVncExtSetParam(m_display, (QString("Desktop=") + QString::fromLatin1(originalDesktopName, originalDesktopNameLength)).toLatin1());
+ XVncExtSetParam(m_display, "Desktop", (QString::fromLatin1(originalDesktopName, originalDesktopNameLength)).toLatin1());
+ XVncExtSetParam(m_display, "Desktop", (QString::fromLatin1(originalDesktopName, originalDesktopNameLength)).toLatin1().constData());
XFree(originalDesktopName);
// Check if the response was correct
@@ -45,14 +45,14 @@ diff -u -r -p vncmanager-controller-1.0.1.orig/VncConfiguration.cpp vncmanager-c
- XVncExtSetParam(m_display, "SecurityTypes=VncAuth");
- XVncExtSetParam(m_display, (QString("PasswordFile=") + m_passwordFile).toLatin1());
+ XVncExtSetParam(m_display, "SecurityTypes", "VncAuth");
+ XVncExtSetParam(m_display, "PasswordFile", m_passwordFile.toLatin1());
+ XVncExtSetParam(m_display, "PasswordFile", m_passwordFile.toLatin1().constData());
break;
case Security::Plain:
- XVncExtSetParam(m_display, "SecurityTypes=Plain");
- XVncExtSetParam(m_display, (QString("PlainUsers=") + m_plainUsers.join(",")).toLatin1());
+ XVncExtSetParam(m_display, "SecurityTypes", "Plain");
+ XVncExtSetParam(m_display, "PlainUsers", m_plainUsers.join(",").toLatin1());
+ XVncExtSetParam(m_display, "PlainUsers", m_plainUsers.join(",").toLatin1().constData());
break;
}
@@ -82,7 +82,7 @@ diff -u -r -p vncmanager-controller-1.0.1.orig/VncConfiguration.cpp vncmanager-c
// Name
- XVncExtSetParam(m_display, ("Desktop=" + m_sessionName).toLatin1());
+ XVncExtSetParam(m_display, "Desktop", m_sessionName.toLatin1());
+ XVncExtSetParam(m_display, "Desktop", m_sessionName.toLatin1().constData());
if (m_managerConnection.connected()) {
// Send session info

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Tue Jul 15 12:05:00 UTC 2025 - Stefan Dirsch <sndirsch@suse.com>
- u_tigervnc-1.15.0.patch
* fixed the patch so it hopefully no longer crashes; previously
the patch converted to a QByteArray instead of a const char *,
which can lead to a crash, especially in optimized builds;
adding .constData() to fix this ... (boo#1241959)
-------------------------------------------------------------------
Tue May 27 11:05:18 UTC 2025 - Stefan Dirsch <sndirsch@suse.com>