parent
6aacc36b3c
commit
684c112faa
@ -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
|
||||
|
@ -3,7 +3,7 @@
|
||||
Name: scl-utils
|
||||
Epoch: 1
|
||||
Version: 2.0.1
|
||||
Release: 6%{dist}
|
||||
Release: 7%{dist}
|
||||
Summary: Utilities for alternative packaging
|
||||
|
||||
License: GPLv2+
|
||||
@ -16,6 +16,7 @@ Buildrequires: rpm-devel
|
||||
Requires: environment-modules
|
||||
|
||||
Patch1: 0001-Honor-CFLAGS-passed-to-cmake.patch
|
||||
Patch2: 0002-Fix-core-dumps-with-large-input-on-stdin-rhbz-125727.patch
|
||||
|
||||
%description
|
||||
Run-time utility for alternative packaging.
|
||||
@ -78,6 +79,9 @@ rm -rf %buildroot
|
||||
%{_rpmconfigdir}/brp-scl-python-bytecompile
|
||||
|
||||
%changelog
|
||||
* Thu Aug 27 2015 Lubos Kardos <lkardos@redhat.com> - 1:2.0.1-7
|
||||
- Fix core dumps with large input on stdin (#1257274)
|
||||
|
||||
* Mon Jul 27 2015 Lubos Kardos <lkardos@redhat.com> - 1:2.0.1-6
|
||||
- Rebuild with the newest rpm.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user