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 4745803 commit b21f920
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 @@ -3620,7 +3620,7 @@ str *b2b_scenario_hdrs(struct b2bl_new_entity *entity)
continue;
}
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.s, name_value.s.len);
b2b_hdrs_buf.len += name_value.s.len;
Expand Down

0 comments on commit b21f920

Please sign in to comment.