Skip to content

Commit

Permalink
Fix buffer overflow in b2b_logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellipsis753 committed Apr 24, 2023
1 parent 6c0b37f commit 5108444
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 @@ -2684,7 +2684,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 5108444

Please sign in to comment.