Skip to content

[Bug] Infinite loop in tcprewrite at get.c:569 #827

@TimChan2001

Description

@TimChan2001

Describe the bug
Tcprewrite gets stuck in an infinite loop at the while loop at get.c:569.

To Reproduce
Steps to reproduce the behavior:

  1. export CC=clang && export CFLAGS="-fsanitize=address -g"
  2. ./autogen.sh && ./configure --disable-shared --disable-local-libopts && make clean && make -j8
  3. ./src/tcprewrite -o /dev/null -i POC
    The POC file can be downloaded in POC

Expected behavior
The program continues to run for over a week without termination.
image

System (please complete the following information):

  • OS: Ubuntu
  • OS version: 16.04, 64 bit
  • Tcpreplay Version: 4.4.4

Additional context
After debugging with GDB and adding debug outputs, it seems the program is unable to exit the while loop at get.c:569.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions