From: Howard Chu Date: Fri, 6 Jan 2017 19:48:58 +0000 (+0000) Subject: ITS#8558 fix mdb_load with escaped plaintext X-Git-Tag: LMDB_0.9.21~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4f61f42810134ef428b8e9c8d2ad6594c3373f51;p=openldap ITS#8558 fix mdb_load with escaped plaintext --- diff --git a/libraries/liblmdb/mdb_load.c b/libraries/liblmdb/mdb_load.c index 053cc88d25..3d02a46ece 100644 --- a/libraries/liblmdb/mdb_load.c +++ b/libraries/liblmdb/mdb_load.c @@ -248,7 +248,8 @@ badend: c2 += 2; } } else { - c1++; c2++; + /* copies are redundant when no escapes were used */ + *c1++ = *c2++; } } } else {