Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 911591 Details for
Bug 1037255
posterazor FTBFS if "-Werror=format-security" flag is used
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch for rawhide
0001-Fix-FTBFS-with-Werror-format-security-1037255-110666.patch (text/plain), 3.95 KB, created by
Yaakov Selkowitz
on 2014-06-23 20:35:30 UTC
(
hide
)
Description:
Patch for rawhide
Filename:
MIME Type:
Creator:
Yaakov Selkowitz
Created:
2014-06-23 20:35:30 UTC
Size:
3.95 KB
patch
obsolete
>From 6bf87e4546944335a8d0ce54293998560fd0c13d Mon Sep 17 00:00:00 2001 >From: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> >Date: Mon, 23 Jun 2014 15:34:03 -0500 >Subject: [PATCH] Fix FTBFS with -Werror=format-security (#1037255, #1106663) > >--- > posterazor-1.5-format-security.patch | 31 +++++++++++++++++++++++++++++++ > posterazor.spec | 14 +++++++------- > 2 files changed, 38 insertions(+), 7 deletions(-) > create mode 100644 posterazor-1.5-format-security.patch > >diff --git a/posterazor-1.5-format-security.patch b/posterazor-1.5-format-security.patch >new file mode 100644 >index 0000000..ee5baf2 >--- /dev/null >+++ b/posterazor-1.5-format-security.patch >@@ -0,0 +1,31 @@ >+--- a/src/FlPosteRazorDialog.cpp >++++ b/src/FlPosteRazorDialog.cpp >+@@ -432,7 +432,7 @@ void FlPosteRazorDialog::loadInputImage(const char *fileName) >+ loaded = m_posteRazorController->loadInputImage(loadFileName, errorMessage, sizeof(errorMessage)); >+ if (!loaded) { >+ if (strlen(errorMessage) > 0) >+- fl_message(errorMessage); >++ fl_message("%s", errorMessage); >+ else >+ fl_message(Translations::instance().fileCouldNotBeLoaded(), fl_filename_name(loadFileName)); >+ } >+@@ -603,7 +603,7 @@ void FlPosteRazorDialog::savePoster(void) >+ fileExistsAskUserForOverwrite = my_file_exists(saveFileName); >+ char overwriteQuestion[1024] = ""; >+ sprintf(overwriteQuestion, Translations::instance().overwriteFile(), fl_filename_name(saveFileName)); >+- if (!fileExistsAskUserForOverwrite || fl_ask(overwriteQuestion)) { >++ if (!fileExistsAskUserForOverwrite || fl_ask("%s", overwriteQuestion)) { >+ int err = m_posteRazorController->savePoster(saveFileName); >+ if (err) >+ fl_message(Translations::instance().fileCouldNotBeSaved(), fl_filename_name(saveFileName)); >+--- a/src/PosteRazorPDFOutput.cpp >++++ b/src/PosteRazorPDFOutput.cpp >+@@ -397,7 +397,7 @@ public: >+ int err = 0; >+ >+ const unsigned int startxref = ftell(m_outputFile); >+- fprintf(m_outputFile, m_xref); >++ fprintf(m_outputFile, "%s", m_xref); >+ >+ fprintf ( >+ m_outputFile, >diff --git a/posterazor.spec b/posterazor.spec >index 61d2826..d45908a 100644 >--- a/posterazor.spec >+++ b/posterazor.spec >@@ -1,6 +1,6 @@ > Name: posterazor > Version: 1.5 >-Release: 13%{?dist} >+Release: 14%{?dist} > Summary: Make your own poster > > Group: Applications/Publishing >@@ -9,7 +9,7 @@ URL: http://%{name}.sourceforge.net/index.php > Source0: http://prdownloads.sourceforge.net/%{name}/PosteRazor-%{version}-Source.zip > Source1: %{name}.desktop > Patch0: %{name}-%{version}-includes.patch >-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) >+Patch1: posterazor-1.5-format-security.patch > > BuildRequires: cmake freeimage-devel fltk-devel libXpm-devel > BuildRequires: desktop-file-utils >@@ -23,6 +23,7 @@ An easy to use, wizard like user interface guides through 5 steps. > %prep > %setup -q -c > %patch0 -p1 -b .includes >+%patch1 -p1 -b .formatsec > for i in CHANGES LICENSE README > do > sed -e 's/\r//' $i > $i.tmp >@@ -45,7 +46,6 @@ cd src > make %VERBOSE=1 %{?_smp_mflags} > > %install >-rm -rf $RPM_BUILD_ROOT > mkdir -p $RPM_BUILD_ROOT%{_bindir} > mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps/ > install -pm 755 src/PosteRazor $RPM_BUILD_ROOT/%{_bindir} >@@ -55,12 +55,8 @@ desktop-file-install --vendor="" \ > --dir $RPM_BUILD_ROOT%{_datadir}/applications/ \ > %{SOURCE1} > >-%clean >-rm -rf $RPM_BUILD_ROOT >- > > %files >-%defattr(-,root,root,-) > %doc CHANGES LICENSE README > %{_bindir}/PosteRazor > %{_datadir}/applications/%{name}.desktop >@@ -68,6 +64,10 @@ rm -rf $RPM_BUILD_ROOT > > > %changelog >+* Mon Jun 23 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 1.5-14 >+- Fix FTBFS with -Werror=format-security (#1037255, #1106663) >+- Cleanup spec >+ > * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-13 > - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild > >-- >1.9.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1037255
: 911591