mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-03 20:38:59 +00:00 
			
		
		
		
	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
			
			
This commit is contained in:
		@@ -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));
 | 
			
		||||
 
 | 
			
		||||
@@ -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));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user