Powered by Linux
[xen 1/6] math: increase bounds and buffers — Semantic Matching Tool

[xen 1/6] math: increase bounds and buffers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



To get more out of the analysis, increase some buffers and limits.

Signed-off-by: Norbert Manthey <nmanthey@xxxxxxxxx>
---
 smatch_math.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/smatch_math.c b/smatch_math.c
index de9f6c0..fef2baf 100644
--- a/smatch_math.c
+++ b/smatch_math.c
@@ -1137,7 +1137,7 @@ static struct range_list *_get_rl(struct expression *expr, int implied, int *rec
 	if (!expr)
 		return NULL;
 
-	if (++(*recurse_cnt) >= 200)
+	if (++(*recurse_cnt) >= 500)
 		return NULL;
 
 	switch(expr->type) {
@@ -1199,7 +1199,7 @@ out_cast:
 struct {
 	struct expression *expr;
 	struct range_list *rl;
-} cached_results[24];
+} cached_results[72];
 static int cache_idx;
 
 void clear_math_cache(void)
-- 
2.7.4

Amazon Development Center Germany GmbH
Berlin - Dresden - Aachen
main office: Krausenstr. 38, 10117 Berlin
Geschaeftsfuehrer: Dr. Ralf Herbrich, Christian Schlaeger
Ust-ID: DE289237879
Eingetragen am Amtsgericht Charlottenburg HRB 149173 B




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux