From b1fadbd0b4e1ff2f039d0766d789d7b025354ff6 Mon Sep 17 00:00:00 2001 From: Ganesh Murthy Date: Thu, 13 Jun 2024 10:39:32 -0400 Subject: [PATCH] Fixes #1522: Fixed pointer arithmatic issue in skip_frame_payload() (#1523) --- src/decoders/http2/http2_decoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/decoders/http2/http2_decoder.c b/src/decoders/http2/http2_decoder.c index f1addccfd..9347f7220 100644 --- a/src/decoders/http2/http2_decoder.c +++ b/src/decoders/http2/http2_decoder.c @@ -408,7 +408,7 @@ static bool skip_frame_payload(qd_http2_decoder_t *decoder, const uint8_t **data decoder_new_state(decoder, HTTP2_DECODE_FRAME_HEADER); return true; } else { - data += *length; + *data += *length; decoder->frame_length_processed += *length; qd_log(LOG_HTTP2_DECODER, QD_LOG_DEBUG, "[C%"PRIu64"] skip_frame_payload - decoder->frame_length=%" PRIu32", decoder->frame_length_processed=%" PRIu32"", decoder->conn_state->conn_id, decoder->frame_length, decoder->frame_length_processed); *length = 0; @@ -461,7 +461,7 @@ static bool parse_frame_header(qd_http2_decoder_t *decoder, const uint8_t **data return false; } *length = 0; - data += *length; + *data += *length; return false; } }