Descriptionallocator: Fix function type mismatch in allocator function definitions.
CL 2697123007 added a context argument to most of the shim allocator
functions. This means that it is no longer valid to define (say) malloc as
an alias of ShimMalloc, because their function types no longer match.
This change defines the allocator functions as real functions that call the
shims passing nullptr as the context.
Found with -fsanitize=cfi-icall.
R=primiano@chromium.org
BUG=696986, 601497
Review-Url: https://codereview.chromium.org/2720703004
Cr-Commit-Position: refs/heads/master@{#453900}
Committed: https://chromium.googlesource.com/chromium/src/+/d4809ef025d50acb50489134273e13444252a8e6
Patch Set 1 #
Total comments: 2
Patch Set 2 : Change shim functions to be ALWAYS_INLINE and replace all aliases with calls #
Messages
Total messages: 15 (8 generated)
|