Page MenuHomePhabricator

[compiler-rt] [sanitizer_common] Fix sha2 interceptors not to use vars in array len
ClosedPublic

Authored by mgorny on Dec 18 2018, 12:29 AM.

Details

Summary

Fix the sha2 interceptor macros to use a constant for array parameter
length rather than referencing the extern variable. Since the digest
length is provided in hash name, reuse the macro parameter for it.
Verify that the calculated value matches the one provided by system
headers.

Diff Detail

Repository
rL LLVM

Event Timeline

mgorny created this revision.Dec 18 2018, 12:29 AM
krytarowski accepted this revision.Dec 18 2018, 12:32 AM
This revision is now accepted and ready to land.Dec 18 2018, 12:32 AM
This revision was automatically updated to reflect the committed changes.