diff options
author | Toni <matzeton@googlemail.com> | 2022-08-24 11:24:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-24 11:24:25 +0200 |
commit | e135c1c5e3a6b202f4b29374426bbc9808978045 (patch) | |
tree | c3c0a1a992d093642055c029b71cbcd2e336f2b5 /src/lib/protocols/softether.c | |
parent | 30730e95e5a270cb70dd5509fa6e481a7ed4e074 (diff) | |
parent | ac0d7ccb7e6ee1a9b67f07822dad66617d5ff75b (diff) |
Merge pull request #1712 from IvanNardi/oss-fuzzer
HTTP, SoftEther, Florensia: fix some memory corruptions
Diffstat (limited to 'src/lib/protocols/softether.c')
-rw-r--r-- | src/lib/protocols/softether.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/softether.c b/src/lib/protocols/softether.c index d5dce55f9..ea59a9a99 100644 --- a/src/lib/protocols/softether.c +++ b/src/lib/protocols/softether.c @@ -97,7 +97,7 @@ static size_t dissect_softether_type(enum softether_value_type t, v->value.ptr.raw = payload + 4; u_int32_t siz = ntohl(get_u_int32_t(payload, 0)); - if(siz == 0 || (u_int64_t)payload_len < (u_int64_t)siz + 3) + if(siz == 0 || (u_int64_t)payload_len < (u_int64_t)siz + sizeof(siz)) return 0; if(t == VALUE_DATA) |