Skip to content

Commit cdb5d49

Browse files
Merge pull request #3065 from Ellipsis753/patch-1
Fix buffer overflow in b2b_logic
2 parents 895a534 + 5108444 commit cdb5d49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/b2b_logic/logic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2684,7 +2684,7 @@ str *b2b_scenario_hdrs(struct b2bl_new_entity *entity)
26842684
continue;
26852685
}
26862686
b2b_hdrs_buf.s = tmp_buf;
2687-
b2b_hdrs_buf_len += len;
2687+
b2b_hdrs_buf_len = b2b_hdrs_buf.len + len;
26882688
}
26892689
memcpy(b2b_hdrs_buf.s + b2b_hdrs_buf.len, name_value.s.s, name_value.s.len);
26902690
b2b_hdrs_buf.len += name_value.s.len;

0 commit comments

Comments
 (0)