Skip to content
Snippets Groups Projects
Commit b6122db5 authored by Gitea's avatar Gitea Committed by Mike Bradeen
Browse files

res_pjsip_header_funcs: Duplicate new header value, don't copy.

When updating an existing header the 'update' code incorrectly
just copied the new value into the existing buffer. If the
new value exceeded the available buffer size memory outside
of the buffer would be written into, potentially causing
a crash.

This change makes it so that the 'update' now duplicates
the new header value instead of copying it into the existing
buffer.
parent 48e435f8
No related branches found
No related tags found
1 merge request!193Merge tag '20.8.1' into 'merge-asterisk-20.8.1'
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment