You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We had a bug during the suffix match in function
`tfw_http_search_cookie()`, before comparing
the name we store current chunk `t = *chunk`, then
modify and compare the chunk, after we rostore the
chunk `*chunk = t;` that leads to header corruption,
because macros `TFW_STR_EQ_CSTR` may assign new
address to `chunk`, therefore restoration happens to
a newly assigned adress instead of original adress in
`chunk`. Fixed by storing address to temporary
variable and then restore `data` and `len` by this
adress.
`__tfw_str_eq_cstr` rewritten to inline function.
Inline functions is more clear, less error prone and
suitable in this case, because we don't need to define
tmp vars and explicitly save values, only move `chunk`
pointer forward. Generated assembly will be the same.
0 commit comments