mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
[PR #780] [MERGED] Add missing "const" to a couple of kConstants #1404
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/google/brotli/pull/780
Author: @agrieve
Created: 11/14/2019
Status: ✅ Merged
Merged: 12/19/2019
Merged by: @eustas
Base:
master← Head:mutable-constants📝 Commits (1)
fb11f6dAdd missing "const" to a couple of kConstants📊 Changes
2 files changed (+11 additions, -2 deletions)
View changed files
📝
c/common/dictionary.c(+10 -1)📝
c/common/transform.c(+1 -1)📄 Description
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.