diff options
author | Marc <marc@malloc.me> | 2023-04-15 00:39:24 +1000 |
---|---|---|
committer | Marc <marc@malloc.me> | 2023-04-15 12:31:09 +1000 |
commit | 3d0afe480d5043ed0d502b4c8ae0eca8d51c4424 (patch) | |
tree | ec9dc04c51c0d689e3dead0da8672d1930472788 /.github/workflows | |
parent | e87c63db4a2ae4b2ddeefc00ed9ae4669333d016 (diff) | |
download | libwifi-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 '.github/workflows')
0 files changed, 0 insertions, 0 deletions