]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Make bitmask table read only
authorHugo Landau <hlandau@openssl.org>
Mon, 27 Nov 2023 07:52:24 +0000 (07:52 +0000)
committerHugo Landau <hlandau@openssl.org>
Mon, 27 Nov 2023 07:52:24 +0000 (07:52 +0000)
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)

ssl/statem/statem_dtls.c

index c674ddfb54df534cd2e178e9fc175c646528a999..166e2075a4f2565bc1a605652bec364737022eef 100644 (file)
@@ -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,