summaryrefslogtreecommitdiff
path: root/lib/command_graph.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2016-08-01 18:36:30 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2016-08-01 18:36:30 +0000
commite648e61a747c6c13ccea7d97066dfb07d4461d96 (patch)
tree69b027a83a6c1bbd41e1a5844a524a2b14c4bb22 /lib/command_graph.h
parent1a8c390d4abc7c3f599813ddee6ca3990de7576c (diff)
lib: Fix OOB range parses, variable matches
Variables now allow strings beginning with numbers to match, ranges and numbers are now long long to fix OOB parses resulting in integer wraparounds. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command_graph.h')
-rw-r--r--lib/command_graph.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/command_graph.h b/lib/command_graph.h
index ed0e98a6e5..32a07ce4ea 100644
--- a/lib/command_graph.h
+++ b/lib/command_graph.h
@@ -29,7 +29,7 @@ struct graph_node
char* text; // for WORD_GN and VARIABLE_GN
long value; // for NUMBER_GN
- long min, max; // for RANGE_GN
+ signed long long min, max;// for RANGE_GN
/* cmd_element struct pointer, only valid for END_GN */
struct cmd_element *element;