You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I used the optionNextValue function to handle a specific input, a segmentation fault (SEGV) was triggered at optionNextValue in libopts/configfile.c:343
(gdb) r
Starting program: /data/ambrose/output/tcpreplay_deepseek24/crashes/configfile.c/generate/optionNextValue/optionNextValue output/default/crashes/id:000000,sig:11,src:000000,time:84918,execs:31496,op:havoc,rep:7
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
optionNextValue (ov_list=0x7bfff5f09020, oov=0x7ffff7e660d0) at /home/ambrose/vsproject/TestLib/tcpreplay/libopts/configfile.c:343
343 int ct = arg_list->useCt;
(gdb) bt
#0 optionNextValue (ov_list=0x7bfff5f09020, oov=0x7ffff7e660d0)
at /home/ambrose/vsproject/TestLib/tcpreplay/libopts/configfile.c:343
#1 0x000055555566a2a2 in main (argc=2, argv=0x7fffffffdca8)
at /data/ambrose/output/tcpreplay_deepseek24/harness/code/configfile.c/generate/optionNextValue.c:72
(gdb) p arg_list->useCt
Cannot access memory at address 0x61610000
(gdb) p *arg_list
Cannot access memory at address 0x61610000
(gdb) p arg_list
$1 = (tArgList *) 0x61610000
The text was updated successfully, but these errors were encountered:
Desctiption
When I used the optionNextValue function to handle a specific input, a segmentation fault (SEGV) was triggered at optionNextValue in libopts/configfile.c:343
tcpreplay/libopts/configfile.c
Lines 330 to 343 in 6fcbf03
The primary cause is that arg_list points to an inaccessible address, leading to a segmentation fault.
Test Environment
Ubuntu 22.04.1, 64bit
tcpreplay(v4.5.1 master 6fcbf03)
program source file
How to trigger
Download the poc file , program and run the following cmd:
Detail
GDB report
The text was updated successfully, but these errors were encountered: