-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #1157, multiple bugs in sending_302 & sending_302_without_prepari…
…ng tests: 1. http_sticky_suite_setup() initializes mock.conn_req as TfwCliConn, while it's declared as TfwConn => memory corruption; 2. tfw_connection_send() calls parser on mock.resp, while the actual response was allocated in tfw_http_sticky_build_redirect() and referenced by mock.req->resp only => bad memory reads; 3. tfw_http_sticky_build_redirect() uses lightweight message allocation w/o h_tbl initialization => bad memory reads on parsing; 4. bad error handling - if tfw_http_sticky_build_redirect() fails, then mock.req isn't freed and we must not zeroize it.
- Loading branch information
1 parent
5232ac3
commit a648e4f
Showing
1 changed file
with
87 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters