Package: pktstat Version: 1.8.5-7 Followup-For: Bug #995624 User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu jammy ubuntu-patch Control: tags -1 patch
Dear Maintainer, In Ubuntu, the attached patch was applied to fix the pktstat build. * debian/patches/0001-Fix-format-string-error-with-recent-ncurses.patch: Add patch to fix -Werror=format-security build error (LP: #1965174). Thanks, Nick
diff -Nru pktstat-1.8.5/debian/patches/0001-Fix-format-string-error-with-recent-ncurses.patch pktstat-1.8.5/debian/patches/0001-Fix-format-string-error-with-recent-ncurses.patch --- pktstat-1.8.5/debian/patches/0001-Fix-format-string-error-with-recent-ncurses.patch 1969-12-31 19:00:00.000000000 -0500 +++ pktstat-1.8.5/debian/patches/0001-Fix-format-string-error-with-recent-ncurses.patch 2022-03-17 13:23:20.000000000 -0400 @@ -0,0 +1,26 @@ +Description: Fix format string error with recent ncurses +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=995624 +Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/pktstat/+bug/1965174 +Author: Sven Joachim <svenj...@gmx.de> +Last-Update: 2022-03-16 +--- +From f3368493fe0365f7f37064fb0ae5fd1fba50fc36 Mon Sep 17 00:00:00 2001 +From: Sven Joachim <svenj...@gmx.de> +Date: Thu, 14 Oct 2021 19:40:32 +0200 +Subject: [PATCH] Fix format string error with recent ncurses + +--- + display.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/display.c ++++ b/display.c +@@ -669,7 +669,7 @@ + attron(A_REVERSE); + printw("%c", h->name[0]); + attroff(A_UNDERLINE); +- printw((char *)h->name + 1); ++ printw("%s", (char *)h->name + 1); + attrset(0); + printw(" "); + } diff -Nru pktstat-1.8.5/debian/patches/series pktstat-1.8.5/debian/patches/series --- pktstat-1.8.5/debian/patches/series 2021-08-24 15:20:56.000000000 -0400 +++ pktstat-1.8.5/debian/patches/series 2022-03-16 15:17:07.000000000 -0400 @@ -1 +1,2 @@ 10-CVE-2013-0350-bug-701211-no-tmp.patch +0001-Fix-format-string-error-with-recent-ncurses.patch