From 8bcc4c6e9228c98c1d3a05a5667dad4a86378707 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 b4414665..9e8b4d58 100644 --- a/src/rpc/parse.cc +++ b/src/rpc/parse.cc @@ -393,7 +393,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());