Skip to content
  • Tatsuhiro Tsujikawa's avatar
    Fix assertion failure because of bad CRYPTO offset provisioning · 65611999
    Tatsuhiro Tsujikawa authored
    This commit fixes the assertion failure which happens when
    acknowledgement of earlier packet increases CRYPTO offset.
    Previously, the offset is always the first CRYPTO frame offset in the
    queue (pktns->crypto.tx.frq).  But passing this into
    ngtcp2_pkt_crypto_max_datalen() underestimates the space because
    acknowledgement might increase offset; it increases the required space
    to serialize offset.
    65611999