From a11e03afa63c5ed85715d7e67f6c2698f10cd427 Mon Sep 17 00:00:00 2001 From: jeffro256 Date: Fri, 17 Nov 2023 02:19:45 -0600 Subject: [PATCH] serialization: fix infinite loops and clean up dispatching Resolves #8687 --- src/cryptonote_basic/tx_extra.h | 8 +- src/serialization/container.h | 4 +- src/serialization/debug_archive.h | 10 +-- src/serialization/difficulty_type.h | 2 - src/serialization/pair.h | 4 +- src/serialization/serialization.h | 127 ++++++---------------------- src/serialization/tuple.h | 2 +- src/serialization/variant.h | 45 ++++------ tests/unit_tests/serialization.cpp | 39 +++++++-- 9 files changed, 88 insertions(+), 153 deletions(-) diff --git a/src/cryptonote_basic/tx_extra.h b/src/cryptonote_basic/tx_extra.h index af6ee5197..a29f126ee 100644 --- a/src/cryptonote_basic/tx_extra.h +++ b/src/cryptonote_basic/tx_extra.h @@ -52,7 +52,7 @@ namespace cryptonote // load template