[asterisk-bugs] [JIRA] (ASTERISK-25219) Source and destination overlap in memcpy in rtp_engine.c

Walter Doekes (JIRA) noreply at issues.asterisk.org
Wed Jul 1 04:03:33 CDT 2015


Walter Doekes created ASTERISK-25219:
----------------------------------------

             Summary: Source and destination overlap in memcpy in rtp_engine.c
                 Key: ASTERISK-25219
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25219
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
    Affects Versions: 11.18.0
            Reporter: Walter Doekes
            Severity: Minor


Valgrind says:
{noformat}
==32423== Source and destination overlap in memcpy(0x85a920, 0x85a920, 304)
==32423==    at 0x4C2F71C: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==32423==    by 0x55BA91: ast_rtp_engine_unload_format (rtp_engine.c:2292)
==32423==    by 0x4EEFB7: ast_format_attr_unreg_interface (format.c:1437)
==32423==    by 0x29F6B478: unload_module (res_format_attr_h263.c:271)
==32423==    by 0x5032ED: ast_module_shutdown (loader.c:568)
==32423==    by 0x4453AD: really_quit (asterisk.c:1812)
==32423==    by 0x44503F: quit_handler (asterisk.c:1729)
==32423==    by 0x446245: handle_stop_gracefully (asterisk.c:2230)
==32423==    by 0x4A20D5: ast_cli_command_full (cli.c:2693)
==32423==    by 0x445D78: consolehandler (asterisk.c:2087)
==32423==    by 0x44CE5C: main (asterisk.c:4405)
{noformat}

Which happens here:
{noformat}
ast_rtp_mime_types[y] = ast_rtp_mime_types[x];
{noformat}

Attaching patch that fixes it.

Cheers,
Walter Doekes
OSSO B.V.




--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list