summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2016-08-09 23:25:01 -0300
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-08-10 14:24:39 +0200
commit5e8b92cec64dbb0dfe57435d3333b359355e3267 (patch)
tree11d6db7b32c46f02a3455a14a29aa9ebfb37d63a
parent033f8a45042d40e442ef2218ad36135698f3909e (diff)
downloadbuildroot-5e8b92cec64dbb0dfe57435d3333b359355e3267.tar.gz
buildroot-5e8b92cec64dbb0dfe57435d3333b359355e3267.zip
flex: add security patch
Fixes: CVE-2016-6354 - buffer overflow in generated code (yy_get_next_buffer). Patch status: upstream backport. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/flex/0002-fix-CVE-2016-6354.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/package/flex/0002-fix-CVE-2016-6354.patch b/package/flex/0002-fix-CVE-2016-6354.patch
new file mode 100644
index 0000000000..b0c780b993
--- /dev/null
+++ b/package/flex/0002-fix-CVE-2016-6354.patch
@@ -0,0 +1,25 @@
+From a5cbe929ac3255d371e698f62dc256afe7006466 Mon Sep 17 00:00:00 2001
+From: Will Estes <westes575@gmail.com>
+Date: Sat, 27 Feb 2016 11:56:05 -0500
+Subject: [PATCH] Fixed incorrect integer type
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+---
+Status: upstream
+
+ flex.skl | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/flex.skl b/src/flex.skl
+index 36a526a..64f853d 100644
+--- a/flex.skl
++++ b/flex.skl
+@@ -1703,7 +1703,7 @@ int yyFlexLexer::yy_get_next_buffer()
+
+ else
+ {
+- yy_size_t num_to_read =
++ int num_to_read =
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
+
+ while ( num_to_read <= 0 )
OpenPOWER on IntegriCloud