kopia lustrzana https://github.com/espressif/esp-idf
http_client: possible buffer overflow fixed when determining last header item to be written
closes IDF-694pull/4345/head
rodzic
03d07741fd
commit
9c0844da3f
|
@ -188,6 +188,7 @@ int http_header_generate_string(http_header_handle_t header, int index, char *bu
|
|||
|
||||
if (siz + 1 > *buffer_len - 2) {
|
||||
ret_idx = idx - 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue