]> git.ipfire.org Git - thirdparty/asterisk.git/commit
sig_analog: Fix truncated buffer copy
authorNaveen Albert <asterisk@phreaknet.org>
Sun, 24 Oct 2021 11:55:50 +0000 (11:55 +0000)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Mon, 8 Nov 2021 19:08:55 +0000 (13:08 -0600)
commit53fff3ec7cb8aebf660ecc819714d89ef565ddf8
treebc83d7b4ba8216c635be3a1a562245b8d43645e1
parenta7ce06b098d199c57c38de2024fe3a2dba74c4e4
sig_analog: Fix truncated buffer copy

Fixes compiler warning caused by a truncated copy of the ANI2 into a
buffer of size 10. This could prevent the null terminator from being
copied if the copy value exceeds the size of the buffer. This increases
the buffer size to 101 to ensure there is no way for truncation to occur.

ASTERISK-29702 #close

Change-Id: Ief9052212952840fa44de6463b8699fdb3e163d0
channels/sig_analog.c