Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
bmalloc: Constify introspect function pointer table
https://bugs.webkit.org/show_bug.cgi?id=156936 Reviewed by Michael Saboff. * bmalloc/Zone.cpp: (bmalloc::Zone::Zone): Declaring this function pointer table const puts it in the read-only section of the binary, providing a little hardening against overwriting the function pointers at runtime. (We have to const_cast when assigning because the API declares a pointer to non-const, but we happen to know it will never try to write through that pointer. This is not my favorite API.) Canonical link: https://commits.webkit.org/175046@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@199934 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
17 additions
and 2 deletions.
- +15 −0 Source/bmalloc/ChangeLog
- +2 −2 Source/bmalloc/bmalloc/Zone.cpp
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters