[Python-modules-commits] [pythonqt] 01/01: re-add fix-string-literals
Jonathan Cristopher Carter
jcc at moszumanska.debian.org
Tue Oct 17 07:58:42 UTC 2017
This is an automated email from the git hooks/post-receive script.
jcc pushed a commit to branch master
in repository pythonqt.
commit dbc096a46f5672c7fe25dfc1f34ac7a5b4724e9a
Author: Jonathan Carter <jcarter at linux.com>
Date: Tue Oct 10 12:03:12 2017 +0200
re-add fix-string-literals
---
debian/patches/fix-string-literals | 49 ++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/debian/patches/fix-string-literals b/debian/patches/fix-string-literals
new file mode 100644
index 0000000..6ac8fd0
--- /dev/null
+++ b/debian/patches/fix-string-literals
@@ -0,0 +1,49 @@
+Description: fix-string-literals
+ Debug and error messages are unquoted, resulting in a compilation security
+ warning that results in a failure to build.
+ .
+ This patch replaces (msg) with ("%", msg) which makes the strings safer
+ and fixes the build failure.
+Author: Jonathan Carter <jcc at debian.org>
+
+--- pythonqt-3.2.orig/generated_cpp_56/com_trolltech_qt_core/com_trolltech_qt_core1.cpp
++++ pythonqt-3.2/generated_cpp_56/com_trolltech_qt_core/com_trolltech_qt_core1.cpp
+@@ -4951,32 +4951,32 @@ return new QMessageLogger(file, line, fu
+
+ void PythonQtWrapper_QMessageLogger::critical(QMessageLogger* theWrappedObject, const char* msg) const
+ {
+- ( theWrappedObject->critical(msg));
++ ( theWrappedObject->critical("%s", msg));
+ }
+
+ void PythonQtWrapper_QMessageLogger::debug(QMessageLogger* theWrappedObject, const char* msg) const
+ {
+- ( theWrappedObject->debug(msg));
++ ( theWrappedObject->debug("%s", msg));
+ }
+
+ void PythonQtWrapper_QMessageLogger::fatal(QMessageLogger* theWrappedObject, const char* msg) const
+ {
+- ( theWrappedObject->fatal(msg));
++ ( theWrappedObject->fatal("%s", msg));
+ }
+
+ void PythonQtWrapper_QMessageLogger::info(QMessageLogger* theWrappedObject, const char* msg) const
+ {
+- ( theWrappedObject->info(msg));
++ ( theWrappedObject->info("%s", msg));
+ }
+
+ void PythonQtWrapper_QMessageLogger::noDebug(QMessageLogger* theWrappedObject, const char* arg__1) const
+ {
+- ( theWrappedObject->noDebug(arg__1));
++ ( theWrappedObject->noDebug("%s", arg__1));
+ }
+
+ void PythonQtWrapper_QMessageLogger::warning(QMessageLogger* theWrappedObject, const char* msg) const
+ {
+- ( theWrappedObject->warning(msg));
++ ( theWrappedObject->warning("%s", msg));
+ }
+
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pythonqt.git
More information about the Python-modules-commits
mailing list