diff options
| author | Frédéric Desbiens <[email protected]> | 2025-09-29 08:59:52 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-09-29 08:59:52 +0100 |
| commit | 5ebdc4d9a8058c4302b10a9a14bd2d84411d5a6b (patch) | |
| tree | f003335f0664a96febe9963d329e458c17a127a9 | |
| parent | 8299589dedd2737c0f1f25b2f6cbd8047cfd9b02 (diff) | |
| parent | 9a1315f316dc11aad1899ed26becfc9b632a3194 (diff) | |
Merge commit from fork
Insert a buffer_ptr position check before getting bytes
| -rw-r--r-- | addons/web/nx_web_http_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/nx_web_http_client.c b/addons/web/nx_web_http_client.c index 7fe76d90..0de34065 100644 --- a/addons/web/nx_web_http_client.c +++ b/addons/web/nx_web_http_client.c @@ -6472,7 +6472,7 @@ UINT version = 0; field_name_length = 0; /* Look for the ':' that separates the field name from its value. */ - while(*buffer_ptr != ':') + while((buffer_ptr < (CHAR *)packet_ptr -> nx_packet_append_ptr) && (*buffer_ptr != ':')) { buffer_ptr++; field_name_length++; |
