Implement custom deserializer to add our own sanity checks
authorJanne Koschinski <janne@kuschku.de>
Mon, 2 Apr 2018 20:26:34 +0000 (22:26 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 23 Apr 2018 21:40:16 +0000 (23:40 +0200)
commit2b777e99fc9f74d4ed21491710260664a1721d1f
tree63a10ae397a086db874dbd2c5ed46dd257d1063e
parentdd27cd1f84ecceb5fb287894373d4cb42131a03f
Implement custom deserializer to add our own sanity checks

This is a rough first implementation in preparation of writing
proper serializers independently of QDataStream.

Thanks to @chaign_c (https://twitter.com/chaign_c/) for finding
issues with QDataStream that prompted this change.
src/common/CMakeLists.txt
src/common/protocols/datastream/datastreampeer.cpp
src/common/protocols/legacy/legacypeer.cpp
src/common/serializers/serializers.cpp [new file with mode: 0644]
src/common/serializers/serializers.h [new file with mode: 0644]