mirror of
https://github.com/openssl/openssl.git
synced 2025-02-23 14:42:15 +08:00
Make bitmask table read only
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from https://github.com/openssl/openssl/pull/22828)
This commit is contained in:
parent
5fb4433606
commit
a87b6d1377
@ -39,9 +39,9 @@
|
||||
if (is_complete) for (ii = (((msg_len) - 1) >> 3) - 1; ii >= 0 ; ii--) \
|
||||
if (bitmask[ii] != 0xff) { is_complete = 0; break; } }
|
||||
|
||||
static unsigned char bitmask_start_values[] =
|
||||
static const unsigned char bitmask_start_values[] =
|
||||
{ 0xff, 0xfe, 0xfc, 0xf8, 0xf0, 0xe0, 0xc0, 0x80 };
|
||||
static unsigned char bitmask_end_values[] =
|
||||
static const unsigned char bitmask_end_values[] =
|
||||
{ 0xff, 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f };
|
||||
|
||||
static void dtls1_fix_message_header(SSL_CONNECTION *s, size_t frag_off,
|
||||
|
Loading…
Reference in New Issue
Block a user