mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
This fixes a high fence violation that MALLOC_DEBUG reported to me.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@111996 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -8313,7 +8313,7 @@ static void copy_request(struct sip_request *dst, const struct sip_request *src)
|
||||
|
||||
if (!dst->data && !(dst->data = ast_str_create(src->data->used + 1)))
|
||||
return;
|
||||
else if (dst->data->len < src->data->used)
|
||||
else if (dst->data->len < src->data->used + 1)
|
||||
ast_str_make_space(&dst->data, src->data->used + 1);
|
||||
|
||||
memcpy(dst->data->str, src->data->str, src->data->used + 1);
|
||||
|
Reference in New Issue
Block a user