Changeset 5798 for pjproject


Ignore:
Timestamp:
May 29, 2018 9:02:51 AM (12 months ago)
Author:
riza
Message:

Fix #2116: iLBC using memcpy instead of memmove for overlapping memory.

Location:
pjproject/trunk/third_party
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/third_party/ilbc/iLBC_decode.c

    r4728 r5798  
    252252               /* update memory */ 
    253253 
    254                memcpy(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float)); 
     254               memmove(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float)); 
    255255               memcpy(mem+CB_MEML-SUBL, 
    256256 
     
    300300               /* update memory */ 
    301301 
    302                memcpy(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float)); 
     302               memmove(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float)); 
    303303               memcpy(mem+CB_MEML-SUBL, 
    304304                   &reverseDecresidual[subframe*SUBL], 
  • pjproject/trunk/third_party/ilbc/iLBC_encode.c

    r638 r5798  
    309309               /* update memory */ 
    310310 
    311                memcpy(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float)); 
     311               memmove(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float)); 
    312312               memcpy(mem+CB_MEML-SUBL, 
    313313 
     
    387387               /* update memory */ 
    388388 
    389                memcpy(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float)); 
     389               memmove(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float)); 
    390390               memcpy(mem+CB_MEML-SUBL, 
    391391                   &reverseDecresidual[subframe*SUBL], 
Note: See TracChangeset for help on using the changeset viewer.