aboutsummaryrefslogtreecommitdiff
path: root/handler.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-11-12 23:31:57 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-11-12 23:31:57 +0100
commitb71a6174e12b4709acaf8bc151938ba12d2a54f6 (patch)
treedc8fbe48681f318c272513b7a8d68982fdc47973 /handler.c
parent7d02b225fe11fb0c7233cd2ea576485ee920f203 (diff)
http.c: Fix more issues with partial boundaries
- http_memmem must not check strlen(a) > n because, in case of a partial boundary, it would wrongfully return NULL. - If one or more characters from a partial boundary are found at the end of a buffer, but the next buffer does not start with the rest of the boundary, the accumulated boundary must be reset, and then look for a new boundary.
Diffstat (limited to 'handler.c')
0 files changed, 0 insertions, 0 deletions