tcpreplay icon indicating copy to clipboard operation
tcpreplay copied to clipboard

[Bug] SEGV on unknown address has occurred when running program tcprewrite in function tcpedit_dlt_getplugin at src/tcpedit/plugins/dlt_utils.c:58

Open Du4t opened this issue 5 months ago • 0 comments

Describe the bug SEGV on unknown address has occurred when running program tcprewrite in function tcpedit_dlt_getplugin at src/tcpedit/plugins/dlt_utils.c:58

To Reproduce Steps to reproduce the behavior:

  1. ./configure
  2. make -j
  3. ./src/tcprewrite --dlt=enet --enet-dmac=00:12:13:14:15:16,00:22:33:44:55:66 --enet-smac=00:12:13:14:15:16,00:22:33:44:55:66 -i PoC1 -o /dev/null

Screenshots

=================================================================
==214509==ERROR: AddressSanitizer: SEGV on unknown address 0x161514131210 (pc 0x5ae23ec15d6f bp 0x161514131200 sp 0x7ffdd08b8520 T0)
==214509==The signal is caused by a READ memory access.
    #0 0x5ae23ec15d6f in tcpedit_dlt_getplugin src/tcpedit/plugins/dlt_utils.c:58:16
    #1 0x5ae23ec15391 in tcpedit_dlt_proto src/tcpedit/plugins/dlt_plugins.c:328:19
    #2 0x5ae23ebfb179 in tcpedit_packet src/tcpedit/tcpedit.c:96:20
    #3 0x5ae23ebfa958 in rewrite_packets src/tcprewrite.c:296:22
    #4 0x5ae23ebf9c22 in main src/tcprewrite.c:137:9
    #5 0x756a46c29d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #6 0x756a46c29e3f in __libc_start_main csu/../csu/libc-start.c:392:3
    #7 0x5ae23eb3a694 in _start (tcprewrite+0x43694) (BuildId: de8c68b499d5e7b8a1e795b2979a835e1d28ab42)

AddressSanitizer can not provide additional info.

Additional context You can download PoC in here

Du4t avatar Sep 20 '24 20:09 Du4t