mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-01 02:05:21 +02:00
Adjust the level of Claude-based paranoia here and there
This commit is contained in:
@@ -49,8 +49,6 @@ bool RequestHeader::GetOther(const char *name, std::string *value) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Intended to be a mad fast parser. It's not THAT fast currently, there's still
|
||||
// things to optimize, but meh.
|
||||
int RequestHeader::ParseHttpHeader(const char *buffer) {
|
||||
if (first_header_) {
|
||||
// Step 1: Method
|
||||
@@ -101,7 +99,7 @@ int RequestHeader::ParseHttpHeader(const char *buffer) {
|
||||
resource[resource_name_len] = '\0';
|
||||
if (q_ptr) {
|
||||
int param_length = (int)(endptr - q_ptr - 1);
|
||||
if (param_length < 0)
|
||||
if (param_length < 0) // This is likely just paranoia.
|
||||
param_length = 0;
|
||||
params = new char[param_length + 1];
|
||||
memcpy(params, q_ptr + 1, param_length);
|
||||
|
||||
Reference in New Issue
Block a user