Package: flex / 2.5.39-8+deb8u2

0006-CVE-2016-6354.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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

---
 flex.skl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/flex.skl
+++ b/flex.skl
@@ -1677,7 +1677,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 )
--- a/scan.c
+++ b/scan.c
@@ -4325,7 +4325,7 @@ static int yy_get_next_buffer (void)
 
 	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 )
--- a/skel.c
+++ b/skel.c
@@ -1888,7 +1888,7 @@ const char *skel[] = {
   "",
   "	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 )",