Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Issue in PacketGetStats, buffer overrun #24

Open
gvarenni opened this issue Feb 12, 2020 · 0 comments
Open

Issue in PacketGetStats, buffer overrun #24

gvarenni opened this issue Feb 12, 2020 · 0 comments

Comments

@gvarenni
Copy link

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant