diff options
author | Christian Faulhammer <fauli@gentoo.org> | 2011-01-12 09:35:47 +0000 |
---|---|---|
committer | Christian Faulhammer <fauli@gentoo.org> | 2011-01-12 09:35:47 +0000 |
commit | 9336d4700f3d9f7b7c228c272c9ab9360fcb913a (patch) | |
tree | 0c2171926cc6f60db68fe3c442dd64c3548c6525 /dev-lang/erlang/files | |
parent | Added missing DEPEND on bc (diff) | |
download | gentoo-2-9336d4700f3d9f7b7c228c272c9ab9360fcb913a.tar.gz gentoo-2-9336d4700f3d9f7b7c228c272c9ab9360fcb913a.tar.bz2 gentoo-2-9336d4700f3d9f7b7c228c272c9ab9360fcb913a.zip |
Add fix from PLD Linux for buffer overflow detected by FORTIFY_SOURCE=2 on 64bit arches. Research done by Arkadiusz Miskiewicz <arekm AT pld-linux DOT org> for bug 348559
(Portage version: 2.1.9.25/cvs/Linux i686)
Diffstat (limited to 'dev-lang/erlang/files')
-rw-r--r-- | dev-lang/erlang/files/erlang-14.2.1-fortify.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dev-lang/erlang/files/erlang-14.2.1-fortify.patch b/dev-lang/erlang/files/erlang-14.2.1-fortify.patch new file mode 100644 index 000000000000..4fb771187ee6 --- /dev/null +++ b/dev-lang/erlang/files/erlang-14.2.1-fortify.patch @@ -0,0 +1,19 @@ + +Erlang 14B01 (aka 14.2.1 in Gentoo) fails with 64bit arches and FORTIFY_SOURCE=2 or greater, consisting of a buffer overflow warning. + +Upstream report: http://www.erlang.org/cgi-bin/ezmlm-cgi?2:mss:2135:bdnooaggpdnbokaboakj +Taken from PLD Linux: http://cvs.pld-linux.org/cgi-bin/cvsweb/packages/erlang/erlang-fortify.patch + +http://bugs.gentoo.org/show_bug.cgi?id=348559 + +--- otp_src_R14B01/erts/emulator/drivers/common/efile_drv.c ++++ otp_src_R14B01/erts/emulator/drivers/common/efile_drv.c +@@ -174,7 +174,7 @@ + + #else + # define FILENAME_BYTELEN(Str) strlen(Str) +-# define FILENAME_COPY(To,From) strcpy(To,From) ++# define FILENAME_COPY(To,From) memcpy(To,From,strlen(From)+1) + # define FILENAME_CHARSIZE 1 + #endif + |