diff options
author | rearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-17 16:20:04 +0000 |
---|---|---|
committer | rearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-17 16:20:04 +0000 |
commit | 4085c1491422e14fad0d7b55abab0bd8dcc52fb3 (patch) | |
tree | 354d273d223a8a7f6324482e0685f83a71189d6d /gcc/cpplex.c | |
parent | 80adfa6a289745dc009f88201ef9d648ab76d5f9 (diff) | |
download | gcc-4085c1491422e14fad0d7b55abab0bd8dcc52fb3.tar.gz |
* cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
leak.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46317 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r-- | gcc/cpplex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c index 47a5c05a958..beeb40c9b80 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -2116,7 +2116,7 @@ _cpp_get_buff (pfile, min_size) size = result->limit - result->base; /* Return a buffer that's big enough, but don't waste one that's way too big. */ - if (size >= min_size && size < BUFF_SIZE_UPPER_BOUND (min_size)) + if (size >= min_size && size <= BUFF_SIZE_UPPER_BOUND (min_size)) break; } |