From 38824ec52450f38d93308c8c4c7f351d3c7e5718 Mon Sep 17 00:00:00 2001 From: Fishybeing <328519762+Fishybeing@users.noreply.github.com> Date: Tue, 6 Oct 2026 14:54:55 +0200 Subject: [PATCH] fix(http): count sceHttpParseStatusLine as implemented Its only NotImplemented_nid_no_patch call guarded the int range limit on the consumed byte count, so tools/progress.py listed the implemented function as missing. Throw std::out_of_range like sceHttpParseResponseHeader does for the same limit. --- core/libs/prx/libSceHttp/src/Parse.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/libs/prx/libSceHttp/src/Parse.cpp b/core/libs/prx/libSceHttp/src/Parse.cpp index 93b9d109b..0732f6240 100644 --- a/core/libs/prx/libSceHttp/src/Parse.cpp +++ b/core/libs/prx/libSceHttp/src/Parse.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include "prx/libc/include/General.hpp" #include "prx/libSceHttp/src/HttpErrors.hpp" @@ -56,7 +57,7 @@ int APS5_VABI sceHttpParseStatusLine(const char* statusLine, size_t lineLen, int size_t length = static_cast(static_cast(lineFeed) - phrase); const size_t consumed = index + length + 1; if (consumed > static_cast(INT32_MAX)) { - NotImplemented_nid_no_patch("sceHttpParseStatusLine: status line longer than INT32_MAX"); + throw std::out_of_range("sceHttpParseStatusLine: consumed byte count exceeds int"); } if (length > 0 && phrase[length - 1] == '\r') --length;