mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
http_client: possible buffer overflow fixed when determining last header item to be written
closes IDF-694
This commit is contained in:
parent
efdddbb253
commit
b7a9f5e115
@ -188,6 +188,7 @@ int http_header_generate_string(http_header_handle_t header, int index, char *bu
|
|||||||
|
|
||||||
if (siz + 1 > *buffer_len - 2) {
|
if (siz + 1 > *buffer_len - 2) {
|
||||||
ret_idx = idx - 1;
|
ret_idx = idx - 1;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user