summaryrefslogtreecommitdiffstats
path: root/0002-Fix-core-dumps-with-large-input-on-stdin-rhbz-125727.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-09-18 14:22:43 +0200
committerRemi Collet <fedora@famillecollet.com>2015-09-18 14:22:43 +0200
commitd9a493b0b171b645d280d5d481d416be41673d8f (patch)
tree70a9be813d313065a5421bc92fd7f012abf414c8 /0002-Fix-core-dumps-with-large-input-on-stdin-rhbz-125727.patch
parent5cc0f6388ee49b67f5c7f2ce94243b42fe423ecf (diff)
scl-utils: f23 (re)build
Diffstat (limited to '0002-Fix-core-dumps-with-large-input-on-stdin-rhbz-125727.patch')
-rw-r--r--0002-Fix-core-dumps-with-large-input-on-stdin-rhbz-125727.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/0002-Fix-core-dumps-with-large-input-on-stdin-rhbz-125727.patch b/0002-Fix-core-dumps-with-large-input-on-stdin-rhbz-125727.patch
new file mode 100644
index 0000000..56e71fa
--- /dev/null
+++ b/0002-Fix-core-dumps-with-large-input-on-stdin-rhbz-125727.patch
@@ -0,0 +1,26 @@
+From c041733a012ec179950c5113a8875a6d4b8c2867 Mon Sep 17 00:00:00 2001
+From: Lubos Kardos <lkardos@redhat.com>
+Date: Thu, 27 Aug 2015 13:46:06 +0200
+Subject: [PATCH] Fix core dumps with large input on stdin (rhbz:1257274)
+
+---
+ src/args.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/args.c b/src/args.c
+index c524dbc..dda57cd 100644
+--- a/src/args.c
++++ b/src/args.c
+@@ -139,8 +139,8 @@ static int extract_command_stdin(struct scl_args *args)
+
+ len = 0;
+ while ((r = fread(command+len, 1, BUFSIZ, stdin)) == BUFSIZ) {
+- command = xrealloc(command, len+BUFSIZ+1);
+ len += r;
++ command = xrealloc(command, len+BUFSIZ+1);
+ }
+
+ if (feof(stdin)) {
+--
+1.9.3
+