diff options
author | Dmitry Stogov <dmitry@zend.com> | 2020-09-07 21:35:48 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2020-09-07 21:35:48 +0300 |
commit | 4a2ae84188b904d24c7c26bf2696507c2feb6947 (patch) | |
tree | cae51e7d398d5d6d9189b1c754744e972b717380 /ext/standard/crypt_blowfish.c | |
parent | fd0b39905c299c24941644f22947553e0e009dbf (diff) | |
download | php-git-4a2ae84188b904d24c7c26bf2696507c2feb6947.tar.gz |
Add "const". Move constant strings to read-only memory.
Diffstat (limited to 'ext/standard/crypt_blowfish.c')
-rw-r--r-- | ext/standard/crypt_blowfish.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/crypt_blowfish.c b/ext/standard/crypt_blowfish.c index 1f20debf28..3806a290ae 100644 --- a/ext/standard/crypt_blowfish.c +++ b/ext/standard/crypt_blowfish.c @@ -356,10 +356,10 @@ static BF_ctx BF_init_state = { } }; -static unsigned char BF_itoa64[64 + 1] = +static const unsigned char BF_itoa64[64 + 1] = "./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; -static unsigned char BF_atoi64[0x60] = { +static const unsigned char BF_atoi64[0x60] = { 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 0, 1, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 64, 64, 64, 64, 64, 64, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, |