!53 merge 22.03 LTS branch, add loongarch64 support and fix CVE-2023-24607
From: @dou33 Reviewed-by: @peijiankang Signed-off-by: @peijiankang
This commit is contained in:
commit
50a0ab5c75
336
CVE-2023-24607.patch
Normal file
336
CVE-2023-24607.patch
Normal file
@ -0,0 +1,336 @@
|
|||||||
|
src/plugins/sqldrivers/odbc/qsql_odbc.cpp | 210 ++++++++++++----------
|
||||||
|
1 file changed, 120 insertions(+), 90 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/plugins/sqldrivers/odbc/qsql_odbc.cpp b/src/plugins/sqldrivers/odbc/qsql_odbc.cpp
|
||||||
|
index 547eb204..8d7ce3e3 100644
|
||||||
|
--- a/src/plugins/sqldrivers/odbc/qsql_odbc.cpp
|
||||||
|
+++ b/src/plugins/sqldrivers/odbc/qsql_odbc.cpp
|
||||||
|
@@ -91,23 +91,39 @@ inline static QString fromSQLTCHAR(const QVarLengthArray<SQLTCHAR>& input, int s
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
+template <size_t SizeOfChar = sizeof(SQLTCHAR)>
|
||||||
|
+void toSQLTCHARImpl(QVarLengthArray<SQLTCHAR> &result, const QString &input); // primary template undefined
|
||||||
|
+
|
||||||
|
+template <typename Container>
|
||||||
|
+void do_append(QVarLengthArray<SQLTCHAR> &result, const Container &c)
|
||||||
|
+{
|
||||||
|
+ result.append(reinterpret_cast<const SQLTCHAR *>(c.data()), c.size());
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+template <>
|
||||||
|
+void toSQLTCHARImpl<1>(QVarLengthArray<SQLTCHAR> &result, const QString &input)
|
||||||
|
+{
|
||||||
|
+ const auto u8 = input.toUtf8();
|
||||||
|
+ do_append(result, u8);
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+template <>
|
||||||
|
+void toSQLTCHARImpl<2>(QVarLengthArray<SQLTCHAR> &result, const QString &input)
|
||||||
|
+{
|
||||||
|
+ do_append(result, input);
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+template <>
|
||||||
|
+void toSQLTCHARImpl<4>(QVarLengthArray<SQLTCHAR> &result, const QString &input)
|
||||||
|
+{
|
||||||
|
+ const auto u32 = input.toUcs4();
|
||||||
|
+ do_append(result, u32);
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
inline static QVarLengthArray<SQLTCHAR> toSQLTCHAR(const QString &input)
|
||||||
|
{
|
||||||
|
QVarLengthArray<SQLTCHAR> result;
|
||||||
|
- result.resize(input.size());
|
||||||
|
- switch(sizeof(SQLTCHAR)) {
|
||||||
|
- case 1:
|
||||||
|
- memcpy(result.data(), input.toUtf8().data(), input.size());
|
||||||
|
- break;
|
||||||
|
- case 2:
|
||||||
|
- memcpy(result.data(), input.unicode(), input.size() * 2);
|
||||||
|
- break;
|
||||||
|
- case 4:
|
||||||
|
- memcpy(result.data(), input.toUcs4().data(), input.size() * 4);
|
||||||
|
- break;
|
||||||
|
- default:
|
||||||
|
- qCritical("sizeof(SQLTCHAR) is %d. Don't know how to handle this.", int(sizeof(SQLTCHAR)));
|
||||||
|
- }
|
||||||
|
+ toSQLTCHARImpl(result, input);
|
||||||
|
result.append(0); // make sure it's null terminated, doesn't matter if it already is, it does if it isn't.
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
@@ -768,6 +784,14 @@ QChar QODBCDriverPrivate::quoteChar()
|
||||||
|
return quote;
|
||||||
|
}
|
||||||
|
|
||||||
|
+static SQLRETURN qt_string_SQLSetConnectAttr(SQLHDBC handle, SQLINTEGER attr, const QString &val)
|
||||||
|
+{
|
||||||
|
+ auto encoded = toSQLTCHAR(val);
|
||||||
|
+ return SQLSetConnectAttr(handle, attr,
|
||||||
|
+ encoded.data(),
|
||||||
|
+ SQLINTEGER(encoded.size() * sizeof(SQLTCHAR))); // size in bytes
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
|
||||||
|
bool QODBCDriverPrivate::setConnectionOptions(const QString& connOpts)
|
||||||
|
{
|
||||||
|
@@ -803,10 +826,7 @@ bool QODBCDriverPrivate::setConnectionOptions(const QString& connOpts)
|
||||||
|
v = val.toUInt();
|
||||||
|
r = SQLSetConnectAttr(hDbc, SQL_ATTR_LOGIN_TIMEOUT, (SQLPOINTER) size_t(v), 0);
|
||||||
|
} else if (opt.toUpper() == QLatin1String("SQL_ATTR_CURRENT_CATALOG")) {
|
||||||
|
- val.utf16(); // 0 terminate
|
||||||
|
- r = SQLSetConnectAttr(hDbc, SQL_ATTR_CURRENT_CATALOG,
|
||||||
|
- toSQLTCHAR(val).data(),
|
||||||
|
- val.length()*sizeof(SQLTCHAR));
|
||||||
|
+ r = qt_string_SQLSetConnectAttr(hDbc, SQL_ATTR_CURRENT_CATALOG, val);
|
||||||
|
} else if (opt.toUpper() == QLatin1String("SQL_ATTR_METADATA_ID")) {
|
||||||
|
if (val.toUpper() == QLatin1String("SQL_TRUE")) {
|
||||||
|
v = SQL_TRUE;
|
||||||
|
@@ -821,10 +841,7 @@ bool QODBCDriverPrivate::setConnectionOptions(const QString& connOpts)
|
||||||
|
v = val.toUInt();
|
||||||
|
r = SQLSetConnectAttr(hDbc, SQL_ATTR_PACKET_SIZE, (SQLPOINTER) size_t(v), 0);
|
||||||
|
} else if (opt.toUpper() == QLatin1String("SQL_ATTR_TRACEFILE")) {
|
||||||
|
- val.utf16(); // 0 terminate
|
||||||
|
- r = SQLSetConnectAttr(hDbc, SQL_ATTR_TRACEFILE,
|
||||||
|
- toSQLTCHAR(val).data(),
|
||||||
|
- val.length()*sizeof(SQLTCHAR));
|
||||||
|
+ r = qt_string_SQLSetConnectAttr(hDbc, SQL_ATTR_TRACEFILE, val);
|
||||||
|
} else if (opt.toUpper() == QLatin1String("SQL_ATTR_TRACE")) {
|
||||||
|
if (val.toUpper() == QLatin1String("SQL_OPT_TRACE_OFF")) {
|
||||||
|
v = SQL_OPT_TRACE_OFF;
|
||||||
|
@@ -1027,9 +1044,13 @@ bool QODBCResult::reset (const QString& query)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
- r = SQLExecDirect(d->hStmt,
|
||||||
|
- toSQLTCHAR(query).data(),
|
||||||
|
- (SQLINTEGER) query.length());
|
||||||
|
+ {
|
||||||
|
+ auto encoded = toSQLTCHAR(query);
|
||||||
|
+ r = SQLExecDirect(d->hStmt,
|
||||||
|
+ encoded.data(),
|
||||||
|
+ SQLINTEGER(encoded.size()));
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
if (r != SQL_SUCCESS && r != SQL_SUCCESS_WITH_INFO && r!= SQL_NO_DATA) {
|
||||||
|
setLastError(qMakeError(QCoreApplication::translate("QODBCResult",
|
||||||
|
"Unable to execute statement"), QSqlError::StatementError, d));
|
||||||
|
@@ -1375,9 +1396,12 @@ bool QODBCResult::prepare(const QString& query)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
- r = SQLPrepare(d->hStmt,
|
||||||
|
- toSQLTCHAR(query).data(),
|
||||||
|
- (SQLINTEGER) query.length());
|
||||||
|
+ {
|
||||||
|
+ auto encoded = toSQLTCHAR(query);
|
||||||
|
+ r = SQLPrepare(d->hStmt,
|
||||||
|
+ encoded.data(),
|
||||||
|
+ SQLINTEGER(encoded.size()));
|
||||||
|
+ }
|
||||||
|
|
||||||
|
if (r != SQL_SUCCESS) {
|
||||||
|
setLastError(qMakeError(QCoreApplication::translate("QODBCResult",
|
||||||
|
@@ -1405,7 +1429,7 @@ bool QODBCResult::exec()
|
||||||
|
SQLCloseCursor(d->hStmt);
|
||||||
|
|
||||||
|
QVector<QVariant>& values = boundValues();
|
||||||
|
- QVector<QByteArray> tmpStorage(values.count(), QByteArray()); // holds temporary buffers
|
||||||
|
+ QVector<QByteArray> tmpStorage(values.count(), QByteArray()); // targets for SQLBindParameter()
|
||||||
|
QVarLengthArray<SQLLEN, 32> indicators(values.count());
|
||||||
|
memset(indicators.data(), 0, indicators.size() * sizeof(SQLLEN));
|
||||||
|
|
||||||
|
@@ -1582,35 +1606,36 @@ bool QODBCResult::exec()
|
||||||
|
case QVariant::String:
|
||||||
|
if (d->unicode) {
|
||||||
|
QByteArray &ba = tmpStorage[i];
|
||||||
|
- QString str = val.toString();
|
||||||
|
+ {
|
||||||
|
+ const auto encoded = toSQLTCHAR(val.toString());
|
||||||
|
+ ba = QByteArray(reinterpret_cast<const char *>(encoded.data()),
|
||||||
|
+ encoded.size() * sizeof(SQLTCHAR));
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
if (*ind != SQL_NULL_DATA)
|
||||||
|
- *ind = str.length() * sizeof(SQLTCHAR);
|
||||||
|
- int strSize = str.length() * sizeof(SQLTCHAR);
|
||||||
|
+ *ind = ba.size();
|
||||||
|
|
||||||
|
if (bindValueType(i) & QSql::Out) {
|
||||||
|
- const QVarLengthArray<SQLTCHAR> a(toSQLTCHAR(str));
|
||||||
|
- ba = QByteArray((const char *)a.constData(), a.size() * sizeof(SQLTCHAR));
|
||||||
|
r = SQLBindParameter(d->hStmt,
|
||||||
|
i + 1,
|
||||||
|
qParamType[bindValueType(i) & QSql::InOut],
|
||||||
|
SQL_C_TCHAR,
|
||||||
|
- strSize > 254 ? SQL_WLONGVARCHAR : SQL_WVARCHAR,
|
||||||
|
+ ba.size() > 254 ? SQL_WLONGVARCHAR : SQL_WVARCHAR,
|
||||||
|
0, // god knows... don't change this!
|
||||||
|
0,
|
||||||
|
- ba.data(),
|
||||||
|
+ const_cast<char *>(ba.constData()), // don't detach
|
||||||
|
ba.size(),
|
||||||
|
ind);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
- ba = QByteArray ((const char *)toSQLTCHAR(str).constData(), str.size()*sizeof(SQLTCHAR));
|
||||||
|
r = SQLBindParameter(d->hStmt,
|
||||||
|
i + 1,
|
||||||
|
qParamType[bindValueType(i) & QSql::InOut],
|
||||||
|
SQL_C_TCHAR,
|
||||||
|
- strSize > 254 ? SQL_WLONGVARCHAR : SQL_WVARCHAR,
|
||||||
|
- strSize,
|
||||||
|
+ ba.size() > 254 ? SQL_WLONGVARCHAR : SQL_WVARCHAR,
|
||||||
|
+ ba.size(),
|
||||||
|
0,
|
||||||
|
- const_cast<char *>(ba.constData()),
|
||||||
|
+ const_cast<char *>(ba.constData()), // don't detach
|
||||||
|
ba.size(),
|
||||||
|
ind);
|
||||||
|
break;
|
||||||
|
@@ -1718,10 +1743,11 @@ bool QODBCResult::exec()
|
||||||
|
case QVariant::String:
|
||||||
|
if (d->unicode) {
|
||||||
|
if (bindValueType(i) & QSql::Out) {
|
||||||
|
- const QByteArray &first = tmpStorage.at(i);
|
||||||
|
- QVarLengthArray<SQLTCHAR> array;
|
||||||
|
- array.append((const SQLTCHAR *)first.constData(), first.size());
|
||||||
|
- values[i] = fromSQLTCHAR(array, first.size()/sizeof(SQLTCHAR));
|
||||||
|
+ const QByteArray &bytes = tmpStorage.at(i);
|
||||||
|
+ const auto strSize = bytes.size() / int(sizeof(SQLTCHAR));
|
||||||
|
+ QVarLengthArray<SQLTCHAR> string(strSize);
|
||||||
|
+ memcpy(string.data(), bytes.data(), strSize * sizeof(SQLTCHAR));
|
||||||
|
+ values[i] = fromSQLTCHAR(string);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
@@ -1968,14 +1993,16 @@ bool QODBCDriver::open(const QString & db,
|
||||||
|
SQLSMALLINT cb;
|
||||||
|
QVarLengthArray<SQLTCHAR> connOut(1024);
|
||||||
|
memset(connOut.data(), 0, connOut.size() * sizeof(SQLTCHAR));
|
||||||
|
- r = SQLDriverConnect(d->hDbc,
|
||||||
|
- NULL,
|
||||||
|
- toSQLTCHAR(connQStr).data(),
|
||||||
|
- (SQLSMALLINT)connQStr.length(),
|
||||||
|
- connOut.data(),
|
||||||
|
- 1024,
|
||||||
|
- &cb,
|
||||||
|
- /*SQL_DRIVER_NOPROMPT*/0);
|
||||||
|
+ {
|
||||||
|
+ auto encoded = toSQLTCHAR(connQStr);
|
||||||
|
+ r = SQLDriverConnect(d->hDbc,
|
||||||
|
+ nullptr,
|
||||||
|
+ encoded.data(), SQLSMALLINT(encoded.size()),
|
||||||
|
+ connOut.data(),
|
||||||
|
+ 1024,
|
||||||
|
+ &cb,
|
||||||
|
+ /*SQL_DRIVER_NOPROMPT*/0);
|
||||||
|
+ }
|
||||||
|
|
||||||
|
if (r != SQL_SUCCESS && r != SQL_SUCCESS_WITH_INFO) {
|
||||||
|
setLastError(qMakeError(tr("Unable to connect"), QSqlError::ConnectionError, d));
|
||||||
|
@@ -2354,17 +2381,15 @@ QStringList QODBCDriver::tables(QSql::TableType type) const
|
||||||
|
if (tableType.isEmpty())
|
||||||
|
return tl;
|
||||||
|
|
||||||
|
- QString joinedTableTypeString = tableType.join(QLatin1Char(','));
|
||||||
|
+ {
|
||||||
|
+ auto joinedTableTypeString = toSQLTCHAR(tableType.join(u','));
|
||||||
|
|
||||||
|
- r = SQLTables(hStmt,
|
||||||
|
- NULL,
|
||||||
|
- 0,
|
||||||
|
- NULL,
|
||||||
|
- 0,
|
||||||
|
- NULL,
|
||||||
|
- 0,
|
||||||
|
- toSQLTCHAR(joinedTableTypeString).data(),
|
||||||
|
- joinedTableTypeString.length() /* characters, not bytes */);
|
||||||
|
+ r = SQLTables(hStmt,
|
||||||
|
+ nullptr, 0,
|
||||||
|
+ nullptr, 0,
|
||||||
|
+ nullptr, 0,
|
||||||
|
+ joinedTableTypeString.data(), joinedTableTypeString.size());
|
||||||
|
+ }
|
||||||
|
|
||||||
|
if (r != SQL_SUCCESS)
|
||||||
|
qSqlWarning(QLatin1String("QODBCDriver::tables Unable to execute table list"), d);
|
||||||
|
@@ -2438,28 +2463,30 @@ QSqlIndex QODBCDriver::primaryIndex(const QString& tablename) const
|
||||||
|
SQL_ATTR_CURSOR_TYPE,
|
||||||
|
(SQLPOINTER)SQL_CURSOR_FORWARD_ONLY,
|
||||||
|
SQL_IS_UINTEGER);
|
||||||
|
- r = SQLPrimaryKeys(hStmt,
|
||||||
|
- catalog.length() == 0 ? NULL : toSQLTCHAR(catalog).data(),
|
||||||
|
- catalog.length(),
|
||||||
|
- schema.length() == 0 ? NULL : toSQLTCHAR(schema).data(),
|
||||||
|
- schema.length(),
|
||||||
|
- toSQLTCHAR(table).data(),
|
||||||
|
- table.length() /* in characters, not in bytes */);
|
||||||
|
+ {
|
||||||
|
+ auto c = toSQLTCHAR(catalog);
|
||||||
|
+ auto s = toSQLTCHAR(schema);
|
||||||
|
+ auto t = toSQLTCHAR(table);
|
||||||
|
+ r = SQLPrimaryKeys(hStmt,
|
||||||
|
+ catalog.isEmpty() ? nullptr : c.data(), c.size(),
|
||||||
|
+ schema.isEmpty() ? nullptr : s.data(), s.size(),
|
||||||
|
+ t.data(), t.size());
|
||||||
|
+ }
|
||||||
|
|
||||||
|
// if the SQLPrimaryKeys() call does not succeed (e.g the driver
|
||||||
|
// does not support it) - try an alternative method to get hold of
|
||||||
|
// the primary index (e.g MS Access and FoxPro)
|
||||||
|
if (r != SQL_SUCCESS) {
|
||||||
|
- r = SQLSpecialColumns(hStmt,
|
||||||
|
- SQL_BEST_ROWID,
|
||||||
|
- catalog.length() == 0 ? NULL : toSQLTCHAR(catalog).data(),
|
||||||
|
- catalog.length(),
|
||||||
|
- schema.length() == 0 ? NULL : toSQLTCHAR(schema).data(),
|
||||||
|
- schema.length(),
|
||||||
|
- toSQLTCHAR(table).data(),
|
||||||
|
- table.length(),
|
||||||
|
- SQL_SCOPE_CURROW,
|
||||||
|
- SQL_NULLABLE);
|
||||||
|
+ auto c = toSQLTCHAR(catalog);
|
||||||
|
+ auto s = toSQLTCHAR(schema);
|
||||||
|
+ auto t = toSQLTCHAR(table);
|
||||||
|
+ r = SQLSpecialColumns(hStmt,
|
||||||
|
+ SQL_BEST_ROWID,
|
||||||
|
+ catalog.isEmpty() ? nullptr : c.data(), c.size(),
|
||||||
|
+ schema.isEmpty() ? nullptr : s.data(), s.size(),
|
||||||
|
+ t.data(), t.size(),
|
||||||
|
+ SQL_SCOPE_CURROW,
|
||||||
|
+ SQL_NULLABLE);
|
||||||
|
|
||||||
|
if (r != SQL_SUCCESS) {
|
||||||
|
qSqlWarning(QLatin1String("QODBCDriver::primaryIndex: Unable to execute primary key list"), d);
|
||||||
|
@@ -2540,15 +2567,18 @@ QSqlRecord QODBCDriver::record(const QString& tablename) const
|
||||||
|
SQL_ATTR_CURSOR_TYPE,
|
||||||
|
(SQLPOINTER)SQL_CURSOR_FORWARD_ONLY,
|
||||||
|
SQL_IS_UINTEGER);
|
||||||
|
- r = SQLColumns(hStmt,
|
||||||
|
- catalog.length() == 0 ? NULL : toSQLTCHAR(catalog).data(),
|
||||||
|
- catalog.length(),
|
||||||
|
- schema.length() == 0 ? NULL : toSQLTCHAR(schema).data(),
|
||||||
|
- schema.length(),
|
||||||
|
- toSQLTCHAR(table).data(),
|
||||||
|
- table.length(),
|
||||||
|
- NULL,
|
||||||
|
- 0);
|
||||||
|
+ {
|
||||||
|
+ auto c = toSQLTCHAR(catalog);
|
||||||
|
+ auto s = toSQLTCHAR(schema);
|
||||||
|
+ auto t = toSQLTCHAR(table);
|
||||||
|
+ r = SQLColumns(hStmt,
|
||||||
|
+ catalog.isEmpty() ? nullptr : c.data(), c.size(),
|
||||||
|
+ schema.isEmpty() ? nullptr : s.data(), s.size(),
|
||||||
|
+ t.data(), t.size(),
|
||||||
|
+ nullptr,
|
||||||
|
+ 0);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
if (r != SQL_SUCCESS)
|
||||||
|
qSqlWarning(QLatin1String("QODBCDriver::record: Unable to execute column list"), d);
|
||||||
|
|
||||||
|
--
|
||||||
|
2.39.1
|
||||||
|
|
||||||
40
add-loongarch64-support.patch
Normal file
40
add-loongarch64-support.patch
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
diff --git a/src/3rdparty/double-conversion/include/double-conversion/utils.h b/src/3rdparty/double-conversion/include/double-conversion/utils.h
|
||||||
|
index 70e697ca..9be294a2 100644
|
||||||
|
--- a/src/3rdparty/double-conversion/include/double-conversion/utils.h
|
||||||
|
+++ b/src/3rdparty/double-conversion/include/double-conversion/utils.h
|
||||||
|
@@ -102,6 +102,7 @@ int main(int argc, char** argv) {
|
||||||
|
defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__) || \
|
||||||
|
defined(__riscv) || \
|
||||||
|
defined(__or1k__) || defined(__arc__) || \
|
||||||
|
+ defined(__loongarch64) || \
|
||||||
|
defined(__EMSCRIPTEN__)
|
||||||
|
#define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
|
||||||
|
#elif defined(__mc68000__) || \
|
||||||
|
diff --git a/src/corelib/global/archdetect.cpp b/src/corelib/global/archdetect.cpp
|
||||||
|
index 1d00b7f5..74f3c8fc 100644
|
||||||
|
--- a/src/corelib/global/archdetect.cpp
|
||||||
|
+++ b/src/corelib/global/archdetect.cpp
|
||||||
|
@@ -59,6 +59,8 @@
|
||||||
|
# define ARCH_PROCESSOR "x86_64"
|
||||||
|
#elif defined(Q_PROCESSOR_IA64)
|
||||||
|
# define ARCH_PROCESSOR "ia64"
|
||||||
|
+#elif defined(Q_PROCESSOR_LOONGARCH_64)
|
||||||
|
+# define ARCH_PROCESSOR "loongarch64"
|
||||||
|
#elif defined(Q_PROCESSOR_MIPS_64)
|
||||||
|
# define ARCH_PROCESSOR "mips64"
|
||||||
|
#elif defined(Q_PROCESSOR_MIPS)
|
||||||
|
diff --git a/src/corelib/global/qprocessordetection.h b/src/corelib/global/qprocessordetection.h
|
||||||
|
index 8d657208..69f84a15 100644
|
||||||
|
--- a/src/corelib/global/qprocessordetection.h
|
||||||
|
+++ b/src/corelib/global/qprocessordetection.h
|
||||||
|
@@ -223,6 +223,10 @@
|
||||||
|
# define Q_PROCESSOR_WORDSIZE 8
|
||||||
|
// Q_BYTE_ORDER not defined, use endianness auto-detection
|
||||||
|
|
||||||
|
+#elif defined(__loongarch64)
|
||||||
|
+# define Q_PROCESSOR_LOONGARCH_64
|
||||||
|
+# define Q_PROCESSOR_WORDSIZE 8
|
||||||
|
+
|
||||||
|
/*
|
||||||
|
MIPS family, known revisions: I, II, III, IV, 32, 64
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ BuildRequires: pkgconfig(libsystemd)
|
|||||||
Name: qt5-qtbase
|
Name: qt5-qtbase
|
||||||
Summary: Qt5 - QtBase components
|
Summary: Qt5 - QtBase components
|
||||||
Version: 5.15.2
|
Version: 5.15.2
|
||||||
Release: 4
|
Release: 6
|
||||||
|
|
||||||
|
|
||||||
# See LGPL_EXCEPTIONS.txt, for exception details
|
# See LGPL_EXCEPTIONS.txt, for exception details
|
||||||
@ -113,6 +113,9 @@ Patch0018: 0001-modify-kwin_5.18-complier-error.patch
|
|||||||
Patch0019: CVE-2021-38593.patch
|
Patch0019: CVE-2021-38593.patch
|
||||||
Patch0020: CVE-2022-25255.patch
|
Patch0020: CVE-2022-25255.patch
|
||||||
Patch0021: qt5-qtbase-Add-sw64-architecture.patch
|
Patch0021: qt5-qtbase-Add-sw64-architecture.patch
|
||||||
|
Patch0022: add-loongarch64-support.patch
|
||||||
|
# https://download.qt.io/official_releases/qt/5.15/CVE-2023-24607-qtbase-5.15.diff
|
||||||
|
Patch0023: CVE-2023-24607.patch
|
||||||
# Do not check any files in %%{_qt5_plugindir}/platformthemes/ for requires.
|
# Do not check any files in %%{_qt5_plugindir}/platformthemes/ for requires.
|
||||||
# Those themes are there for platform integration. If the required libraries are
|
# Those themes are there for platform integration. If the required libraries are
|
||||||
# not there, the platform to integrate with isn't either. Then Qt will just
|
# not there, the platform to integrate with isn't either. Then Qt will just
|
||||||
@ -369,6 +372,8 @@ Qt5 libraries used for drawing widgets and OpenGL items.
|
|||||||
%patch0019 -p1
|
%patch0019 -p1
|
||||||
%patch0020 -p1
|
%patch0020 -p1
|
||||||
%patch0021 -p1
|
%patch0021 -p1
|
||||||
|
%patch0022 -p1
|
||||||
|
%patch0023 -p1
|
||||||
# move some bundled libs to ensure they're not accidentally used
|
# move some bundled libs to ensure they're not accidentally used
|
||||||
pushd src/3rdparty
|
pushd src/3rdparty
|
||||||
mkdir UNUSED
|
mkdir UNUSED
|
||||||
@ -1010,6 +1015,12 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Apr 28 2023 douyan <douyan@kylinos.cn> - 5.15.2-6
|
||||||
|
- fix CVE-2023-24607
|
||||||
|
|
||||||
|
* Mon Dec 12 2022 huajingyun <huajingyun@loongson.cn> - 5.15.2-5
|
||||||
|
- add loongarch64 support
|
||||||
|
|
||||||
* Tue Oct 25 2022 wuzx<wuzx1226@qq.com> - 5.15.2-4
|
* Tue Oct 25 2022 wuzx<wuzx1226@qq.com> - 5.15.2-4
|
||||||
- Add sw64 architecture
|
- Add sw64 architecture
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user