fix(besside-ng): bad beacon error #2275
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The initial value for buf was
2048inaircrack-ng/src/besside-ng/besside-ng.c
Line 2612 in 8e55278
However, in b8828cb, it was changed to
aircrack-ng/src/besside-ng/besside-ng.c
Line 2606 in b8828cb
This causes the check
if (totlen < l) goto __bad;in line 1848 ofbesside-ng.cbecome true astotlenis derived from thesizeof(*wh), which in turn is dependent onbuf.The size of
ieee80211_frameis 24, so 24 * 32 still only results in 768, not 2048. I've tested this to be working with * 16 as well, but as a tradeoff between future possibility and memory conservation, I settled on 32.Let me know if I should increase/decrease the value.
Fixes: #2268
Fixes: #2203