Skip to content

Issue in PacketGetStats, buffer overrun #24

@gvarenni

Description

@gvarenni

PacketGetStats writes
win10pcap.patch.txt

a field in the structure pcap_stats that should NOT be touched, bs_capt. Due to some bad mojo in pcap_stats and pcap_stats_ex on windows (wpcap.dll), pcap_stats uses a 3-fields version of struct pcap_stats, pcap_stats_ex uses a bigger one. PacketGetStatsEx is the function that can write into bs_capt.

This is clearly written in the original sources for packet.dll from the original WinPcap (winpcap.org).

Patch is attached.

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