]> 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)
committerVictor Julien <victor@inliniac.net>
Thu, 3 Dec 2020 12:00:42 +0000 (13:00 +0100)
as it can overflow, and is compared with uint32 such as
message_length and message_start and

src/app-layer-ssl.h

index fc299c8762e8e0a82dbad70188d29fb85ceb8fca..bf8fc0f9e29a9bdbe2d2590ff070e11a58f6959a 100644 (file)
@@ -193,7 +193,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;