about summary refs log tree commit diff stats
path: root/src/libwifi.h
diff options
context:
space:
mode:
authorMarc <marc@malloc.me>2023-04-15 00:39:24 +1000
committerMarc <marc@malloc.me>2023-04-15 12:31:09 +1000
commit3d0afe480d5043ed0d502b4c8ae0eca8d51c4424 (patch)
treeec9dc04c51c0d689e3dead0da8672d1930472788 /src/libwifi.h
parente87c63db4a2ae4b2ddeefc00ed9ae4669333d016 (diff)
downloadlibwifi-3d0afe480d5043ed0d502b4c8ae0eca8d51c4424.tar.gz
libwifi-3d0afe480d5043ed0d502b4c8ae0eca8d51c4424.tar.bz2
libwifi-3d0afe480d5043ed0d502b4c8ae0eca8d51c4424.zip
core: Check length of body before allocating
Frames with no body may be worth parsing, but should avoid the allocation
of zero-length bodies. Instead, we'll check if the body exists in the
parsed data and if that length is zero, return early with success.

Fixes #16
Diffstat (limited to 'src/libwifi.h')
0 files changed, 0 insertions, 0 deletions