Accepting request 201207 from home:mgorse:branches:Base:System
- Add more-fix-buffer-overflow.patch (bnc#829720). OBS-URL: https://build.opensuse.org/request/show/201207 OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=182
This commit is contained in:
parent
b1e4aa93ed
commit
34b3e62806
32
more-fix-buffer-overflow.patch
Normal file
32
more-fix-buffer-overflow.patch
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
From 1ef2db5a5672e09fa1337099b7d9d6ab61c19bdc Mon Sep 17 00:00:00 2001
|
||||||
|
From: Karel Zak <kzak@redhat.com>
|
||||||
|
Date: Thu, 1 Aug 2013 12:58:22 +0200
|
||||||
|
Subject: [PATCH] more: fix buffer overflow
|
||||||
|
|
||||||
|
The bug has been probably introduced by commit
|
||||||
|
1ac300932deab8dea2c43050921bbbdb36d62ff1.
|
||||||
|
|
||||||
|
Reported-by: "Dr. David Alan Gilbert" <dave@treblig.org>
|
||||||
|
References: https://bugzilla.novell.com/show_bug.cgi?id=829720
|
||||||
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
||||||
|
---
|
||||||
|
text-utils/more.c | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/text-utils/more.c b/text-utils/more.c
|
||||||
|
index 3bbeede..3377118 100644
|
||||||
|
--- a/text-utils/more.c
|
||||||
|
+++ b/text-utils/more.c
|
||||||
|
@@ -835,7 +835,8 @@ void prepare_line_buffer(void)
|
||||||
|
if (nsz < LINSIZ)
|
||||||
|
nsz = LINSIZ;
|
||||||
|
|
||||||
|
- nline = xrealloc(Line, nsz);
|
||||||
|
+ /* alloc nsz and extra space for \n\0 */
|
||||||
|
+ nline = xrealloc(Line, nsz + 2);
|
||||||
|
Line = nline;
|
||||||
|
LineLen = nsz;
|
||||||
|
}
|
||||||
|
--
|
||||||
|
1.8.4
|
||||||
|
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 27 16:58:40 UTC 2013 - mgorse@suse.com
|
||||||
|
|
||||||
|
- Add more-fix-buffer-overflow.patch (bnc#829720).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Sep 13 07:06:19 UTC 2013 - werner@suse.de
|
Fri Sep 13 07:06:19 UTC 2013 - werner@suse.de
|
||||||
|
|
||||||
|
@ -100,6 +100,8 @@ Patch3: fdisk-tinfo.patch
|
|||||||
Patch4: make-sure-sbin-resp-usr-sbin-are-in-PATH.diff
|
Patch4: make-sure-sbin-resp-usr-sbin-are-in-PATH.diff
|
||||||
# PATCH-FIX-UPSTREAM eject-scsi-check-host_status-and-driver_status.patch bnc358033 anicka@suse.cz -- Check eject host_status and driver_status when using SG_IO.
|
# PATCH-FIX-UPSTREAM eject-scsi-check-host_status-and-driver_status.patch bnc358033 anicka@suse.cz -- Check eject host_status and driver_status when using SG_IO.
|
||||||
Patch5: eject-scsi-check-host_status-and-driver_status.patch
|
Patch5: eject-scsi-check-host_status-and-driver_status.patch
|
||||||
|
# PATCH-FIX-UPSTREAM more-fix-buffer-overflow.patch bnc839720 mgorse@suse.com -- More: Fix under-allocation of memory.
|
||||||
|
Patch6: more-fix-buffer-overflow.patch
|
||||||
# disable encryption
|
# disable encryption
|
||||||
Patch12: util-linux-2.23.1-noenc-suse.diff
|
Patch12: util-linux-2.23.1-noenc-suse.diff
|
||||||
|
|
||||||
@ -219,6 +221,7 @@ xzcat %{S:0} | %gpg_verify %{S:12} -
|
|||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
%patch5 -p1
|
%patch5 -p1
|
||||||
|
%patch6 -p1
|
||||||
%patch12 -p1
|
%patch12 -p1
|
||||||
#
|
#
|
||||||
%patch20 -p1
|
%patch20 -p1
|
||||||
|
Loading…
Reference in New Issue
Block a user