From: Howard Chu Date: Wed, 9 Jul 2014 16:16:03 +0000 (-0700) Subject: Fix loading of printable dump X-Git-Tag: OPENLDAP_REL_ENG_2_4_40~126^2~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c4d0f90fce067aa02c91b975810bcd4391451430;p=openldap Fix loading of printable dump Off-by-one in end check, would complain on valid input. --- diff --git a/libraries/liblmdb/mdb_load.c b/libraries/liblmdb/mdb_load.c index 17f4757330..7a76d3c005 100644 --- a/libraries/liblmdb/mdb_load.c +++ b/libraries/liblmdb/mdb_load.c @@ -239,7 +239,7 @@ badend: if (c2[1] == '\\') { c1++; c2 += 2; } else { - if (c2+3 >= end || !isxdigit(c2[1]) || !isxdigit(c2[2])) { + if (c2+3 > end || !isxdigit(c2[1]) || !isxdigit(c2[2])) { Eof = 1; badend(); return EOF;