From d95e20952c877f86fec4cb5317cc22a92d9306f9 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 18 Jul 2019 20:34:15 -0700 Subject: [PATCH] kvdb: fix iterator access issue --- .../stratosphere/kvdb/kvdb_memory_key_value_store.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stratosphere/libstratosphere/include/stratosphere/kvdb/kvdb_memory_key_value_store.hpp b/stratosphere/libstratosphere/include/stratosphere/kvdb/kvdb_memory_key_value_store.hpp index 958e50007..d44dd8b92 100644 --- a/stratosphere/libstratosphere/include/stratosphere/kvdb/kvdb_memory_key_value_store.hpp +++ b/stratosphere/libstratosphere/include/stratosphere/kvdb/kvdb_memory_key_value_store.hpp @@ -21,7 +21,6 @@ #include "kvdb_auto_buffer.hpp" #include "kvdb_archive.hpp" #include "kvdb_bounded_string.hpp" -#include "kvdb_memory_key_value_store.hpp" namespace sts::kvdb { @@ -405,8 +404,8 @@ namespace sts::kvdb { return ResultKvdbKeyNotFound; } - size_t size = std::min(max_out_size, it.GetValueSize()); - std::memcpy(out_value, it.GetValuePointer(), size); + size_t size = std::min(max_out_size, it->GetValueSize()); + std::memcpy(out_value, it->GetValuePointer(), size); *out_size = size; return ResultSuccess; }