diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-08-01 18:36:30 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-08-01 18:36:30 +0000 |
| commit | e648e61a747c6c13ccea7d97066dfb07d4461d96 (patch) | |
| tree | 69b027a83a6c1bbd41e1a5844a524a2b14c4bb22 /lib/command_graph.h | |
| parent | 1a8c390d4abc7c3f599813ddee6ca3990de7576c (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.h | 2 |
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; |
