]> git.sur5r.net Git - openldap/commitdiff
Fix loading of printable dump
authorHoward Chu <hyc@symas.com>
Wed, 9 Jul 2014 16:16:03 +0000 (09:16 -0700)
committerHoward Chu <hyc@symas.com>
Wed, 9 Jul 2014 16:16:03 +0000 (09:16 -0700)
Off-by-one in end check, would complain on valid input.

libraries/liblmdb/mdb_load.c

index 17f4757330260ac8bf455acde1bb4a22dea9302c..7a76d3c0051e31ce60e5d180ddaf8f22958879cc 100644 (file)
@@ -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;