Skip to content
Snippets Groups Projects
Commit 23be6762 authored by Richard Mudgett's avatar Richard Mudgett
Browse files

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
........

Merged revisions 373645 from http://svn.asterisk.org/svn/asterisk/branches/10
........

Merged revisions 373650 from http://svn.asterisk.org/svn/asterisk/branches/11


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@373656 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent a71a541e
Branches
Tags
No related merge requests found
...@@ -251,7 +251,7 @@ ...@@ -251,7 +251,7 @@
/* update memory */ /* 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, memcpy(mem+CB_MEML-SUBL,
...@@ -299,7 +299,7 @@ ...@@ -299,7 +299,7 @@
/* update memory */ /* 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, memcpy(mem+CB_MEML-SUBL,
&reverseDecresidual[subframe*SUBL], &reverseDecresidual[subframe*SUBL],
SUBL*sizeof(float)); SUBL*sizeof(float));
......
...@@ -308,7 +308,7 @@ ...@@ -308,7 +308,7 @@
/* update memory */ /* 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, memcpy(mem+CB_MEML-SUBL,
...@@ -386,7 +386,7 @@ ...@@ -386,7 +386,7 @@
/* update memory */ /* 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, memcpy(mem+CB_MEML-SUBL,
&reverseDecresidual[subframe*SUBL], &reverseDecresidual[subframe*SUBL],
SUBL*sizeof(float)); SUBL*sizeof(float));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment