From 24ce818aaf8944cafbbd4828ba581063499cad29 Mon Sep 17 00:00:00 2001 From: noctuum <25441068+noctuum@users.noreply.github.com> Date: Mon, 28 Sep 2026 17:02:42 +0500 Subject: [PATCH] Read the unpacked object in the raw string case A list holding one raw string reached this case and threw on `src`. --- src/rpc/parse.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/parse.cc b/src/rpc/parse.cc index bd21324f..f39f1cf0 100644 --- a/src/rpc/parse.cc +++ b/src/rpc/parse.cc @@ -414,7 +414,7 @@ convert_to_value_nothrow(const torrent::Object& src, int64_t* value, int base, i == unpacked.as_string().c_str() + unpacked.as_string().size(); case torrent::Object::TYPE_RAW_STRING: { - const torrent::raw_string& str = src.as_raw_string(); + const torrent::raw_string& str = unpacked.as_raw_string(); auto buffer = std::make_unique(str.size() + 1); std::memcpy(buffer.get(), str.data(), str.size());