aboutsummaryrefslogtreecommitdiff
path: root/pcap-airpcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcap-airpcap.c')
-rw-r--r--pcap-airpcap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pcap-airpcap.c b/pcap-airpcap.c
index d986ad9c..510e4c4e 100644
--- a/pcap-airpcap.c
+++ b/pcap-airpcap.c
@@ -627,6 +627,9 @@ airpcap_read(pcap_t *p, int cnt, pcap_handler callback, u_char *user)
/*
* Loop through each packet.
+ *
+ * This assumes that a single buffer of packets will have
+ * <= INT_MAX packets, so the packet count doesn't overflow.
*/
#define bhp ((AirpcapBpfHeader *)bp)
n = 0;