mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Fix loading of printable dump
Off-by-one in end check, would complain on valid input.
This commit is contained in:
parent
38e71c68de
commit
c4d0f90fce
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user