Skip to content

use-of-uninitialized values in print-esp.c #849

Open
@fxlb

Description

@fxlb

Need to fix print-esp.c. Test case:

$ CC=clang CFLAGS='-fno-omit-frame-pointer -fsanitize=memory -fno-optimize-sibling-calls -fPIC -g3 -ggdb3 -O0' ./configure

$ make -s clean all

$ ./tcpdump -#n -E "file tests/esp-secrets.txt" -r tests/espudp1.pcap

1) tcpdump-4.9 branch:

reading from file tests/espudp1.pcap, link-type EN10MB (Ethernet)
==205441==WARNING: MemorySanitizer: use-of-uninitialized-value
#0 0x5e74f5 in esp_print
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions