flex: add security patch
PATCH 1/1 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 <[email protected]>
--- package/flex/0002-fix-CVE-2016-6354.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 package/flex/0002-fix-CVE-2016-6354.patch
package/flex/0002-fix-CVE-2016-6354.patch new file +25 -0
@@ -0,0 +1,25 @@ +From a5cbe929ac3255d371e698f62dc256afe7006466 Mon Sep 17 00:00:00 2001 +From: Will Estes <[email protected]> +Date: Sat, 27 Feb 2016 11:56:05 -0500 +Subject: [PATCH] Fixed incorrect integer type + +Signed-off-by: Gustavo Zacarias <[email protected]> +--- +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 )
Signature · 1 line
2.7.3
Thomas Petazzoni
AppliedPATCH 1/1 flex: add security patch
Hello,
Quoted 10 lines · Gustavo Zacarias
Fixes:
CVE-2016-6354 - buffer overflow in generated code (yy_get_next_buffer).Patch status: upstream backport.
Signed-off-by Gustavo Zacarias <[email protected]>--- package/flex/0002-fix-CVE-2016-6354.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 package/flex/0002-fix-CVE-2016-6354.patch
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com