]> git.pld-linux.org Git - packages/liboping.git/commitdiff
- fix string format errors, rel 5 auto/th/liboping-1.10.0-5
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 2 Mar 2022 06:38:03 +0000 (07:38 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 2 Mar 2022 06:38:03 +0000 (07:38 +0100)
format-security.patch [new file with mode: 0644]
liboping.spec

diff --git a/format-security.patch b/format-security.patch
new file mode 100644 (file)
index 0000000..db8c814
--- /dev/null
@@ -0,0 +1,30 @@
+--- liboping-1.10.0/src/oping.c~       2017-05-11 09:32:27.000000000 +0200
++++ liboping-1.10.0/src/oping.c        2022-03-02 07:37:25.601351158 +0100
+@@ -1125,7 +1125,7 @@
+                       wattron (ctx->window, COLOR_PAIR(color));
+               if (has_utf8())
+-                      mvwprintw (ctx->window, /* y = */ 3, /* x = */ x + 2, symbol);
++                      mvwprintw (ctx->window, /* y = */ 3, /* x = */ x + 2, "%s", symbol);
+               else
+                       mvwaddch (ctx->window, /* y = */ 3, /* x = */ x + 2, symbolc);
+@@ -1223,7 +1223,7 @@
+                       mvwaddch (ctx->window, /* y = */ 3, /* x = */ x + 2, ' ');
+               else if (has_utf8 ())
+                       mvwprintw (ctx->window, /* y = */ 3, /* x = */ x + 2,
+-                                      hist_symbols_utf8[index]);
++                                      "%s", hist_symbols_utf8[index]);
+               else
+                       mvwaddch (ctx->window, /* y = */ 3, /* x = */ x + 2,
+                                       hist_symbols_acs[index] | A_ALTCHARSET);
+@@ -1600,8 +1600,7 @@
+                       HOST_PRINTF ("%zu bytes from %s (%s): icmp_seq=%u ttl=%i ",
+                                       data_len, context->host, context->addr,
+-                                      sequence, recv_ttl,
+-                                      format_qos (recv_qos, recv_qos_str, sizeof (recv_qos_str)));
++                                      sequence, recv_ttl);
+                       if ((recv_qos != 0) || (opt_send_qos != 0))
+                       {
+                               HOST_PRINTF ("qos=%s ",
index 8759e169c699fb534d5c70f3d3375f322579118a..203bb230780e581ee8302d4ebc7861b002d24c66 100644 (file)
@@ -2,12 +2,13 @@ Summary:      Liboping library to generate ICMP echo requests
 Summary(pl.UTF-8):     Biblioteka liboping do generowania żądań ICMP echo
 Name:          liboping
 Version:       1.10.0
-Release:       4
+Release:       5
 License:       LGPL v2.1+ (library), GPL v2+ (tool, perl binding)
 Group:         Libraries
 Source0:       http://noping.cc/files/%{name}-%{version}.tar.bz2
 # Source0-md5: 54e0f5a1aaf9eabf3f412d2fdc9c6831
 Patch0:                gcc8.patch
+Patch1:                format-security.patch
 URL:           http://noping.cc/
 BuildRequires: autoconf >= 2.65
 BuildRequires: automake
@@ -118,6 +119,7 @@ jeden.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
This page took 0.130417 seconds and 4 git commands to generate.