diff options
author | agrieve <agrieve@chromium.org> | 2019-12-19 18:15:58 -0500 |
---|---|---|
committer | Eugene Kliuchnikov <eustas.ru@gmail.com> | 2019-12-20 00:15:58 +0100 |
commit | 4b5771bee7995d3d606221caa455c044d80434df (patch) | |
tree | 8762f1fb41ec964bd19127189e649222c27b558f /c/common/transform.c | |
parent | c435f066751ef83aa4194445085a70ad9d193704 (diff) | |
download | brotli-4b5771bee7995d3d606221caa455c044d80434df.zip brotli-4b5771bee7995d3d606221caa455c044d80434df.tar.gz brotli-4b5771bee7995d3d606221caa455c044d80434df.tar.bz2 |
Add missing "const" to a couple of kConstants (#780)
These showed up in a Chromium audit:
https://bugs.chromium.org/p/chromium/issues/detail?id=747064#c8
Although already effectively const, adding "const" causes the symbols to
be moved into the read-only section of the binary.
Diffstat (limited to 'c/common/transform.c')
-rwxr-xr-x | c/common/transform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c/common/transform.c b/c/common/transform.c index c44f671..f8fa433 100755 --- a/c/common/transform.c +++ b/c/common/transform.c @@ -160,7 +160,7 @@ static const uint8_t kTransformsData[] = { 0, BROTLI_TRANSFORM_UPPERCASE_FIRST, 34, }; -static BrotliTransforms kBrotliTransforms = { +static const BrotliTransforms kBrotliTransforms = { sizeof(kPrefixSuffix), (const uint8_t*)kPrefixSuffix, kPrefixSuffixMap, |