new session ticket decoding fails with google.com
There seems to be an issue either in our decoding of new session ticket, or google.com encodes the extension data incorrectly.
$ ./gnutls-cli www.google.com --priority NORMAL:-VERS-ALL:+VERS-TLS1.3
[...]
|<5>| REC[0x556105fa9bd0]: SSL 3.3 Application Data packet received. Epoch 2, length: 517
|<5>| REC[0x556105fa9bd0]: Expected Packet Application Data(23)
|<5>| REC[0x556105fa9bd0]: Received Packet Application Data(23) with length: 517
|<5>| REC[0x556105fa9bd0]: Decrypted Packet[0] Handshake(22) with length: 500
|<4>| HSK[0x556105fa9bd0]: parsing session ticket message
|<3>| ASSERT: extv.c[_gnutls_extv_parse]:52
|<3>| ASSERT: tls13/session_ticket.c[_gnutls13_recv_session_ticket]:360
|<3>| ASSERT: handshake-tls13.c[_gnutls13_recv_async_handshake]:478
|<3>| ASSERT: record.c[record_add_to_buffers]:954
|<3>| ASSERT: record.c[_gnutls_recv_in_buffers]:1421
|<3>| ASSERT: record.c[_gnutls_recv_int]:1569
*** Fatal error: Invalid TLS extensions length field.
*** Server has terminated the connection abnormally.
|<5>| REC[0x556105fa9bd0]: Start of epoch cleanup
|<5>| REC[0x556105fa9bd0]: End of epoch cleanup
|<5>| REC[0x556105fa9bd0]: Epoch #2 freed
Edited by Nikos Mavrogiannopoulos