From 59ac317d2a4a81613e3e1dbc17fd2d3ec4205ba1 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 6 Jan 2017 19:48:58 +0000 Subject: [PATCH] ITS#8558 fix mdb_load with escaped plaintext --- libraries/liblmdb/mdb_load.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/liblmdb/mdb_load.c b/libraries/liblmdb/mdb_load.c index 73dfe8cfd9..c421a6980f 100644 --- a/libraries/liblmdb/mdb_load.c +++ b/libraries/liblmdb/mdb_load.c @@ -245,7 +245,8 @@ badend: c2 += 2; } } else { - c1++; c2++; + /* copies are redundant when no escapes were used */ + *c1++ = *c2++; } } } else { -- 2.39.5