Skip to content
Snippets Groups Projects
Commit 1451a220 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

fix: crash during unpack due to CRLF line endings on UWP

- The std::ios_base::binary flag needs to be used when opening
  files for output of encoded data on windows, otherwise bytes with
  the value 0A (LF) will be replaced with 0D0A (CRLF).
  This will cause deserialization to behave incorrectly.

- This patch adds the binary flag where encoded data is saved for
  the name cache, id list, device list, node cache, contacts list,
  and incoming trust request list.

Change-Id: I0b1b671014af1cb42bc2f76a1064bc6008c70419
parent c4fc51a2
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment