mirror of
https://github.com/mfontanini/libtins
synced 2026-01-25 19:51:34 +01:00
Make RadioTapParser::skip_to_field check for end of buffer (#296)
Fixes #295
This commit is contained in:
@@ -233,7 +233,7 @@ bool RadioTapParser::skip_to_field(RadioTap::PresentFlags flag) {
|
||||
}
|
||||
|
||||
bool RadioTapParser::has_fields() const {
|
||||
return current_bit_ != MAX_RADIOTAP_FIELD;
|
||||
return current_bit_ != MAX_RADIOTAP_FIELD && current_ptr_ < end_;
|
||||
}
|
||||
|
||||
bool RadioTapParser::has_field(RadioTap::PresentFlags flag) const {
|
||||
|
||||
Reference in New Issue
Block a user