Skip to content

Commit

Permalink
Merge pull request #3065 from Ellipsis753/patch-1
Browse files Browse the repository at this point in the history
Fix buffer overflow in b2b_logic

(cherry picked from commit cdb5d49)
  • Loading branch information
rvlad-patrascu committed Apr 26, 2023
1 parent aaaa19c commit c88b875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/b2b_logic/logic.c
Original file line number Diff line number Diff line change
Expand Up @@ -3415,7 +3415,7 @@ str *b2b_scenario_hdrs(xmlNodePtr client_node, b2bl_tuple_t* tuple)
goto next;
}
b2b_hdrs_buf.s = tmp_buf;
b2b_hdrs_buf_len += len;
b2b_hdrs_buf_len = b2b_hdrs_buf.len + len;
}
memcpy(b2b_hdrs_buf.s + b2b_hdrs_buf.len, name_value.s, name_value.len);
b2b_hdrs_buf.len += name_value.len;
Expand Down

0 comments on commit c88b875

Please sign in to comment.