Skip to content

Commit

Permalink
Fixes skupperproject#1522: Fixed pointer arithmatic issue in skip_fra…
Browse files Browse the repository at this point in the history
…me_payload() (skupperproject#1523)
  • Loading branch information
ganeshmurthy authored Jun 13, 2024
1 parent 944ab16 commit b1fadbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/decoders/http2/http2_decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit b1fadbd

Please sign in to comment.