Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20423)
const OSSL_ACKM_TX_PKT *p, *pnext;
OSSL_RTT_INFO rtt;
QUIC_PN largest_pn_lost = 0;
- uint64_t num_bytes = 0;
OSSL_CC_LOSS_INFO loss_info = {0};
uint32_t flags = 0;
if (p->pkt_num > largest_pn_lost)
largest_pn_lost = p->pkt_num;
-
- num_bytes += p->num_bytes;
}
if (!pseudo) {
allowance = ccm->get_tx_allowance(cc);
sz = allowance > mdpl ? mdpl : allowance;
+ if (sz > SIZE_MAX)
+ sz = SIZE_MAX;
/*
* QUIC minimum packet sizes, etc. mean that in practice we will not
step_time(7);
- if (!TEST_true(net_sim_send(&sim, sz)))
+ if (!TEST_true(net_sim_send(&sim, (size_t)sz)))
goto err;
total_sent += sz;