diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2018-01-12 18:20:01 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-13 18:03:23 +0000 |
commit | 4734a4b41898e3df252b6234ed1270a915fd1f68 (patch) | |
tree | 99c3f5c6d846e2953fdc0fab8253af4cac1e5eac /meta/recipes-devtools/ruby/ruby/CVE-2017-9226.patch | |
parent | 4d4d07650d600fcb8fb1de8592494c3a9e4189ce (diff) | |
download | openembedded-core-4734a4b41898e3df252b6234ed1270a915fd1f68.tar.gz |
ruby: update to 2.4.0
Existing version of ruby-native (2.2.5) was crashing on my machine (and others' too),
yet a functional ruby is necessary to upgrade webkit to a version that less vulnerable
to Spectre.
I've performed the update by copying the ruby recipe directory over from the current
pyro tree; if you want to see the list of specific commits, issue this command:
git log 99656fecf4fa6e24ba49ecb7f26f893e733818a0 meta/recipes-devtools/ruby
(up to commit e593d3aeb2ea5f08d6e0753133fe89e345b339e8)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/ruby/ruby/CVE-2017-9226.patch')
-rw-r--r-- | meta/recipes-devtools/ruby/ruby/CVE-2017-9226.patch | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/meta/recipes-devtools/ruby/ruby/CVE-2017-9226.patch b/meta/recipes-devtools/ruby/ruby/CVE-2017-9226.patch deleted file mode 100644 index fc783e8a15..0000000000 --- a/meta/recipes-devtools/ruby/ruby/CVE-2017-9226.patch +++ /dev/null @@ -1,33 +0,0 @@ -commit f015fbdd95f76438cd86366467bb2b39870dd7c6 -Author: K.Kosako <kosako@sofnec.co.jp> -Date: Fri May 19 15:44:47 2017 +0900 - - fix #55 : Byte value expressed in octal must be smaller than 256 - -Upstream-Status: Backport - -CVE: CVE-2017-9226 -Signed-off-by: Thiruvadi Rajaraman <tajaraman@mvista.com> - -Index: ruby-2.2.5/regparse.c -=================================================================== ---- ruby-2.2.5.orig/regparse.c 2017-09-12 16:33:21.977835068 +0530 -+++ ruby-2.2.5/regparse.c 2017-09-12 16:34:40.987117744 +0530 -@@ -3222,7 +3222,7 @@ - PUNFETCH; - prev = p; - num = scan_unsigned_octal_number(&p, end, 3, enc); -- if (num < 0) return ONIGERR_TOO_BIG_NUMBER; -+ if (num < 0 || num >= 256) return ONIGERR_TOO_BIG_NUMBER; - if (p == prev) { /* can't read nothing. */ - num = 0; /* but, it's not error */ - } -@@ -3676,7 +3676,7 @@ - if (IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_OCTAL3)) { - prev = p; - num = scan_unsigned_octal_number(&p, end, (c == '0' ? 2:3), enc); -- if (num < 0) return ONIGERR_TOO_BIG_NUMBER; -+ if (num < 0 || num >= 256) return ONIGERR_TOO_BIG_NUMBER; - if (p == prev) { /* can't read nothing. */ - num = 0; /* but, it's not error */ - } |