Fix clang-tidy warnings

This commit is contained in:
momo5502
2025-03-18 18:47:35 +01:00
parent 7c1bd69bfc
commit 046e01832d
8 changed files with 49 additions and 55 deletions

View File

@@ -64,7 +64,9 @@ namespace gdb_stub
void send_xfer_data(connection_handler& connection, const std::string& args, const std::string_view data)
{
size_t offset{}, length{};
size_t offset{};
size_t length{};
rt_assert(sscanf_s(args.c_str(), "%zx,%zx", &offset, &length) == 2);
if (offset >= data.size())