core: fix persistence bug in RAW I/O code
authorAlexander Alekhin <alexander.alekhin@intel.com>
Wed, 26 Apr 2017 14:19:26 +0000 (17:19 +0300)
committerAlexander Alekhin <alexander.alekhin@intel.com>
Wed, 26 Apr 2017 14:19:26 +0000 (17:19 +0300)
commit75f28245a8c67b578e590b89221d63a1e6d63db8
tree8a164083322de884937af9c18e0eff01831df32c
parentc757d2863efb71035468de49c83a4ec22203cf8e
core: fix persistence bug in RAW I/O code

- persistence.cpp code expects special sizeof value for passed structures
- this assumption is lead to memory corruption problems
- fixed/workarounded test to prevent memory corruption on Linux 32-bit systems
modules/core/src/persistence.cpp
modules/core/test/test_io.cpp