jlec        15/08/06 15:35:23

  Added:                patchutils-0.3.3-format-security.patch
  Log:
  Fix for format-security, bug #556846
  
  Signed-off-by: Justin Lecher <[email protected]>
  (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 
E9402A79B03529A2!)

Revision  Changes    Path
1.1                  
dev-util/patchutils/files/patchutils-0.3.3-format-security.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/patchutils/files/patchutils-0.3.3-format-security.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/patchutils/files/patchutils-0.3.3-format-security.patch?rev=1.1&content-type=text/plain

Index: patchutils-0.3.3-format-security.patch
===================================================================
 src/filterdiff.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/filterdiff.c b/src/filterdiff.c
index eb08d49..0b2b301 100644
--- a/src/filterdiff.c
+++ b/src/filterdiff.c
@@ -1263,7 +1263,7 @@ read_regex_file (const char *file)
                        char errstr[300];
                        regerror (err, &regex[num_regex - 1], errstr,
                                  sizeof (errstr));
-                       error (EXIT_FAILURE, 0, errstr);
+                       error (EXIT_FAILURE, 0, "%s", errstr);
                        exit (1);
                }
        }
@@ -1509,7 +1509,7 @@ int main (int argc, char *argv[])
                        char errstr[300];
                        regerror (err, &regex[num_regex - 1], errstr,
                                  sizeof (errstr));
-                       error (EXIT_FAILURE, 0, errstr);
+                       error (EXIT_FAILURE, 0, "%s", errstr);
                        exit (1);
                }
        }




Reply via email to