]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
ssl: upgarde to uint32 for bytes_processed
authorPhilippe Antoine <contact@catenacyber.fr>
Thu, 15 Oct 2020 19:32:27 +0000 (21:32 +0200)
committerShivani Bhardwaj <shivanib134@gmail.com>
Thu, 3 Dec 2020 22:39:55 +0000 (04:09 +0530)
as it can overflow, and is compared with uint32 such as
message_length and message_start and

src/app-layer-ssl.h

index 597e85cd02af55bb113de208f167c6e471be2958..28d7bc1c42b3743229bcfcbdc9d84061f2280a35 100644 (file)
@@ -186,7 +186,7 @@ typedef struct SSLStateConnp_ {
     uint32_t handshake_length;
 
     /* the no of bytes processed in the currently parsed record */
-    uint16_t bytes_processed;
+    uint32_t bytes_processed;
     /* the no of bytes processed in the currently parsed handshake */
     uint16_t hs_bytes_processed;