From 39ed446e1513c52f795d090fc9b1f173c0912d6a Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Tue, 10 Sep 2013 16:00:30 -0700 Subject: VUL: fix some possible buffer overruns --- common/parse.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/parse.h') diff --git a/common/parse.h b/common/parse.h index 3ec37104..69a57ff8 100644 --- a/common/parse.h +++ b/common/parse.h @@ -55,6 +55,9 @@ struct stream /******************************************************************************/ #define s_check_rem(s, n) ((s)->p + (n) <= (s)->end) +/******************************************************************************/ +#define s_check_rem_out(s, n) ((s)->p + (n) <= (s)->data + (s)->size) + /******************************************************************************/ #define s_check_end(s) ((s)->p == (s)->end) -- cgit v1.2.1