-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two CI failure fixes #21411
Two CI failure fixes #21411
Conversation
Pointers can be invalidated when the underlying BUF_MEM grows.
@@ -63,7 +63,7 @@ typedef struct ossl_record_layer_st OSSL_RECORD_LAYER; | |||
* buffer of payload data in |buf| of length |buflen|. | |||
*/ | |||
struct ossl_record_template_st { | |||
int type; | |||
unsigned char type; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To fix big endian failures as seen here: https://github.com/openssl/openssl/actions/runs/5507119256
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There could be alternative approaches however we IMO depend on the type being just one byte if not anywhere else then in the SSL_trace() call when it is invoked from the ssl message callback.
OK with urgent |
Merged to master branch. Thank you for the reviews. |
Pointers can be invalidated when the underlying BUF_MEM grows. Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from #21411)
Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from #21411)
ossl_quic_wire_encode_pkt_hdr(): Assign ptrs only on static buf wpkt
Pointers can be invalidated when the underlying BUF_MEM grows.
quicapitest: Fix SSL_trace() test on big endian platforms
The structure member (of int type) is used as single byte value which works only on little endian platforms. Use the correct type.