[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#8558) LMDB mdb_load plain text

remy.chibois@expandium.com wrote:
> Full_Name: Remy Chibois
> Version: LMDB_0.9+
> OS: Debian "Jessie"
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (
> when loading data into a LMDB database using plain text mode (mdb_load -T),
> escaped hexadecimal pairs (such as \09 for a tab character) cause data to be
> incorrectly converted.
> Replacing mdb_load.c line 251 with "*c1++ = *c2++;"nsnstead of "c1++; c2++;"
> fixes the issue (after the first escaped sequence, characters from c2 pointer
> need to be copied to c1 pointer in order to properly overwrite escaped
> sequence).
Thanks, fixed in git.

   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/