[asterisk-commits] rmudgett: branch 10 r373645 - in /branches/10: ./ codecs/ilbc/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Sep 25 12:19:56 CDT 2012
Author: rmudgett
Date: Tue Sep 25 12:19:52 2012
New Revision: 373645
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=373645
Log:
Fix valgrind found memcpy issues in codec_ilbc.
Valgrind found codec_ilbc using memcpy instead of memmove for overlapping
memory blocks.
(issue ASTERISK-19890)
(closes issue ASTERISK-20231)
Reported by: Walter Doekes
Patches:
ASTERISK-20231.patch (license #5674) patch uploaded by Walter Doekes
........
Merged revisions 373640 from http://svn.asterisk.org/svn/asterisk/branches/1.8
Modified:
branches/10/ (props changed)
branches/10/codecs/ilbc/iLBC_decode.c
branches/10/codecs/ilbc/iLBC_encode.c
Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/10/codecs/ilbc/iLBC_decode.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/codecs/ilbc/iLBC_decode.c?view=diff&rev=373645&r1=373644&r2=373645
==============================================================================
--- branches/10/codecs/ilbc/iLBC_decode.c (original)
+++ branches/10/codecs/ilbc/iLBC_decode.c Tue Sep 25 12:19:52 2012
@@ -251,7 +251,7 @@
/* update memory */
- memcpy(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float));
+ memmove(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float));
memcpy(mem+CB_MEML-SUBL,
@@ -299,7 +299,7 @@
/* update memory */
- memcpy(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float));
+ memmove(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float));
memcpy(mem+CB_MEML-SUBL,
&reverseDecresidual[subframe*SUBL],
SUBL*sizeof(float));
Modified: branches/10/codecs/ilbc/iLBC_encode.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/codecs/ilbc/iLBC_encode.c?view=diff&rev=373645&r1=373644&r2=373645
==============================================================================
--- branches/10/codecs/ilbc/iLBC_encode.c (original)
+++ branches/10/codecs/ilbc/iLBC_encode.c Tue Sep 25 12:19:52 2012
@@ -308,7 +308,7 @@
/* update memory */
- memcpy(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float));
+ memmove(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float));
memcpy(mem+CB_MEML-SUBL,
@@ -386,7 +386,7 @@
/* update memory */
- memcpy(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float));
+ memmove(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float));
memcpy(mem+CB_MEML-SUBL,
&reverseDecresidual[subframe*SUBL],
SUBL*sizeof(float));
More information about the asterisk-commits
mailing list