RetroShare/libretroshare/src/serialiser
AsamK 3cfe69787f Fix subtle bug in tlv deserialization of TLV_TYPE_KEYSIGNATURETYPE
When using -O2, the variable currType is optimized out, so the
signature is added with the wrong sign type. Then when verifying the
data the signature is not found and verification fails.

The main sympton of this bug was receiving no more forum/channel posts.

Wit debug builds (-O0) this worked, that's why not every one was affected
by this.

This bug was introduced in 2012 (19e856c2a8)
2015-09-02 02:03:46 +02:00
..
itempriorities.h Adding start of new Mail Service. 2014-12-02 13:22:48 +00:00
rsbanlistitems.cc add/remove from lists. Load/save from user whitelist/blacklist 2015-05-30 20:29:06 +00:00
rsbanlistitems.h add/remove from lists. Load/save from user whitelist/blacklist 2015-05-30 20:29:06 +00:00
rsbaseserial.cc Added ServiceControl + ServiceInfo. Basics are working, but still a lot to do! 2014-03-22 03:53:44 +00:00
rsbaseserial.h Added ServiceControl + ServiceInfo. Basics are working, but still a lot to do! 2014-03-22 03:53:44 +00:00
rsbwctrlitems.cc Added Bandwidth Monitoring service to libretroshare to help debug Lag. 2012-06-21 23:23:46 +00:00
rsbwctrlitems.h Added Bandwidth Monitoring service to libretroshare to help debug Lag. 2012-06-21 23:23:46 +00:00
rsconfigitems.cc turned some std::list<PeerId> into std::set, as it automatically prevents duplicates 2015-04-17 21:36:22 +00:00
rsconfigitems.h Fixed serialiser bug in RsTlvList 2014-04-01 08:00:20 +00:00
rsdiscovery2items.cc fixed bug reporting wrong IP for connection (patch from Cyril) 2015-06-04 13:25:19 +00:00
rsdiscovery2items.h fixed bug reporting wrong IP for connection (patch from Cyril) 2015-06-04 13:25:19 +00:00
rsdsdvitems.cc Added Dsdv Data transport packet. 2011-11-21 14:38:13 +00:00
rsdsdvitems.h fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rsfiletransferitems.cc added load/save to service permission matrix 2015-02-03 21:28:32 +00:00
rsfiletransferitems.h Fixed possible crash in RsFileTransferSerialiser by checking return value of dynamic_cast. 2015-07-12 00:58:05 +00:00
rsgxschannelitems.cc removed debug info 2015-06-16 19:17:52 +00:00
rsgxschannelitems.h fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rsgxscircleitems.cc moved signature validation and encryption one level up into p3IdService. Added timestamp for GXS identities and auto-removal after 7 days. Updated display in IdDialog 2015-03-14 14:33:23 +00:00
rsgxscircleitems.h Fixed serialiser bug in RsTlvList 2014-04-01 08:00:20 +00:00
rsgxscommentitems.cc improved debug info in a few places 2015-07-09 20:55:11 +00:00
rsgxscommentitems.h fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rsgxsforumitems.cc removed some debug info 2014-09-16 19:53:23 +00:00
rsgxsforumitems.h fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rsgxsiditems.cc moved signature validation and encryption one level up into p3IdService. Added timestamp for GXS identities and auto-removal after 7 days. Updated display in IdDialog 2015-03-14 14:33:23 +00:00
rsgxsiditems.h Fixed possible crash in RsGxsIdSerialiser by checking return value of dynamic_cast. 2015-07-12 01:43:10 +00:00
rsgxsitem.h Mods: 2012-07-05 21:26:14 +00:00
rsgxsitems.cc improved network statistics for GXS net service. Added number of available messages for unsubscribed forums in GUI. Should be done as well for channels. 2014-12-16 06:54:15 +00:00
rsgxsitems.h fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rsgxsrecognitems.cc added missing size check in RsGxsRecognSerialiser 2015-06-13 08:03:58 +00:00
rsgxsrecognitems.h fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rsgxsreputationitems.cc almost done with load/save of BanLists. Changed the item format to include masked_bytes, and changed subitem types. Also disabled code from rsgxsreputationitems.cc wich was a copy of the code from rsbanlistitems.cc 2015-05-29 20:49:37 +00:00
rsgxsreputationitems.h fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rsgxsupdateitems.cc added number of posts at friends to saveList/loadList. Improves visibility of number of posts 2015-01-31 18:06:37 +00:00
rsgxsupdateitems.h added number of posts at friends to saveList/loadList. Improves visibility of number of posts 2015-01-31 18:06:37 +00:00
rsheartbeatitems.cc Rewrite of the discovery system to be more private, with less traffic. 2013-09-28 08:09:59 +00:00
rsheartbeatitems.h Rewrite of the discovery system to be more private, with less traffic. 2013-09-28 08:09:59 +00:00
rshistoryitems.cc merge of branch v0.6-idclean 7180 2014-03-17 20:56:06 +00:00
rshistoryitems.h merge of branch v0.6-idclean 7180 2014-03-17 20:56:06 +00:00
rsmailtransportitems.cc Adding start of new Mail Service. 2014-12-02 13:22:48 +00:00
rsmailtransportitems.h Adding start of new Mail Service. 2014-12-02 13:22:48 +00:00
rsmsgitems.cc fixed memory leak and potential crash due to not copying items passed to config saving in messages. Added save/load for map between GRouter and Msg ids which fixes the never removed outgoing messages 2015-04-28 21:46:10 +00:00
rsmsgitems.h fixed memory leak and potential crash due to not copying items passed to config saving in messages. Added save/load for map between GRouter and Msg ids which fixes the never removed outgoing messages 2015-04-28 21:46:10 +00:00
rsnxsitems.cc improved/cleaned debug outputs in in rsgxsnetservice.cc. Performed optimization of transaction system: limited the size of message transactions and allowed a much larger transaction timeout to suppress the transaction cancelling epidemic that caused global bandwidth increase and lack of channel/forum propagation 2014-12-02 20:06:56 +00:00
rsnxsitems.h implemented publish key sharing between peers for channels. 2014-10-05 19:14:05 +00:00
rsphotoitems.cc fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rsphotoitems.h fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rspluginitems.cc turned some std::list<PeerId> into std::set, as it automatically prevents duplicates 2015-04-17 21:36:22 +00:00
rspluginitems.h fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rsposteditems.cc removed a few redundant return statements 2015-05-19 21:29:50 +00:00
rsposteditems.h fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rsrttitems.cc fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rsrttitems.h fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rsserial.cc reduced size of output for buggy RsItems 2015-04-03 21:57:24 +00:00
rsserial.h moved signature validation and encryption one level up into p3IdService. Added timestamp for GXS identities and auto-removal after 7 days. Updated display in IdDialog 2015-03-14 14:33:23 +00:00
rsserviceids.h Modify Messages with additional namespace - to allow switching to new Mail. 2015-03-22 04:45:01 +00:00
rsserviceinfoitems.cc fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rsserviceinfoitems.h Added ServiceControl + ServiceInfo. Basics are working, but still a lot to do! 2014-03-22 03:53:44 +00:00
rsserviceserialiser.cc made file transfer a service. Removed all the old FT code from pqiHandler, and got rid of deprecated CRC32 computation/exchange methods 2013-10-01 08:11:15 +00:00
rsserviceserialiser.h made file transfer a service. Removed all the old FT code from pqiHandler, and got rid of deprecated CRC32 computation/exchange methods 2013-10-01 08:11:15 +00:00
rsstatusitems.cc Removed unused parameter warnings in libretroshare. 2011-08-12 13:42:30 +00:00
rsstatusitems.h merge of QoS branch into trunk 2011-09-04 20:01:30 +00:00
rstlvaddrs.cc Fixed serialiser bug in RsTlvList 2014-04-01 08:00:20 +00:00
rstlvaddrs.h fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rstlvbanlist.cc Added missing initialization in 2015-07-13 11:03:18 +00:00
rstlvbanlist.h load/save of banlist comments. Removed unused menu entries. Added auto-fill of input fields on sleection 2015-06-02 13:02:20 +00:00
rstlvbase.cc removed debug info about missing keys; added debug info about deserialization checking of string 2015-08-05 20:51:34 +02:00
rstlvbase.h load/save of banlist comments. Removed unused menu entries. Added auto-fill of input fields on sleection 2015-06-02 13:02:20 +00:00
rstlvbinary.cc fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rstlvbinary.h fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rstlvdsdv.cc fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rstlvdsdv.h fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rstlvfileitem.cc fixed potential integer problems in de-serialization of different TLV items (patch from Henry) 2015-07-01 12:17:03 +00:00
rstlvfileitem.h fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rstlvgenericmap.h fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rstlvgenericmap.inl removed unnecessary debug output 2015-04-21 20:09:20 +00:00
rstlvgenericparam.cc fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rstlvgenericparam.h fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rstlvidset.cc fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rstlvidset.h turned some std::list<PeerId> into std::set, as it automatically prevents duplicates 2015-04-17 21:36:22 +00:00
rstlvimage.cc fixed potential integer problem in image de-serialization (reported by HM) 2015-06-29 12:00:40 +00:00
rstlvimage.h fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rstlvitem.cc fixed potential integer problems in de-serialization of different TLV items (patch from Henry) 2015-07-01 12:17:03 +00:00
rstlvitem.h fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rstlvkeys.cc Fix subtle bug in tlv deserialization of TLV_TYPE_KEYSIGNATURETYPE 2015-09-02 02:03:46 +02:00
rstlvkeys.h * Renamed RS_TLVKEY_DISTRIB_PRIVATE into *_PUBLISH, as it is used as such. 2015-05-19 21:28:46 +00:00
rstlvkeyvalue.cc fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rstlvkeyvalue.h fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rstlvlist.h Fixed serialiser bug in RsTlvList 2014-04-01 08:00:20 +00:00
rstlvmail.cc Adding start of new Mail Service. 2014-12-02 13:22:48 +00:00
rstlvmail.h Adding start of new Mail Service. 2014-12-02 13:22:48 +00:00
rstlvmaps.h fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rstlvstring.cc moved signature validation and encryption one level up into p3IdService. Added timestamp for GXS identities and auto-removal after 7 days. Updated display in IdDialog 2015-03-14 14:33:23 +00:00
rstlvstring.h moved signature validation and encryption one level up into p3IdService. Added timestamp for GXS identities and auto-removal after 7 days. Updated display in IdDialog 2015-03-14 14:33:23 +00:00
rswikiitems.cc fixed compilation warnings 2014-12-16 06:49:42 +00:00
rswikiitems.h fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00
rswireitems.cc fixed compilation warnings 2014-12-16 06:49:42 +00:00
rswireitems.h fixed up tlv serialisers: 2014-03-29 15:34:37 +00:00