diff options
author | cbdev <cb@cbcdn.com> | 2021-02-21 23:15:01 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2021-02-21 23:15:01 +0100 |
commit | 3673022f5752b905c04f083387dfbdfae9d7b664 (patch) | |
tree | 864ac10e6d8983fde5abb144574e2e33f232ad72 | |
parent | 3ad586cf788f8ffaac548b5b7a9de74523ac3b92 (diff) | |
download | websocksy-3673022f5752b905c04f083387dfbdfae9d7b664.tar.gz websocksy-3673022f5752b905c04f083387dfbdfae9d7b664.tar.bz2 websocksy-3673022f5752b905c04f083387dfbdfae9d7b664.zip |
Fix dynamic32 edge case
-rw-r--r-- | plugins/framing_dynamic32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/framing_dynamic32.c b/plugins/framing_dynamic32.c index 3b66588..e1394e7 100644 --- a/plugins/framing_dynamic32.c +++ b/plugins/framing_dynamic32.c @@ -53,7 +53,7 @@ static int64_t framing_dynamic32(uint8_t* data, size_t length, size_t last_read, *framing_data = NULL; } - if(length > conncfg->offset + 4){ + if(length >= conncfg->offset + 4){ //read size field size_p = (uint32_t*) (data + conncfg->offset); size = le32toh(*size_p); |