This is an archive of the discontinued LLVM Phabricator instance.

Add interceptors for the sha1(3) from NetBSD
ClosedPublic

Authored by krytarowski on Nov 26 2018, 8:45 PM.

Details

Summary

Add interceptors for:

  • SHA1Init
  • SHA1Update
  • SHA1Final
  • SHA1Transform
  • SHA1End
  • SHA1File
  • SHA1FileChunk
  • SHA1Data

Add a dedicated regression test for this API.

Diff Detail

Event Timeline

krytarowski created this revision.Nov 26 2018, 8:45 PM
vitalybuka requested changes to this revision.Dec 5 2018, 1:29 AM
vitalybuka added inline comments.
lib/sanitizer_common/sanitizer_common_interceptors.inc
7378

Update suppose to read and write context

7383

it should at least read context, not sure about write

7388

this function must write something

This revision now requires changes to proceed.Dec 5 2018, 1:29 AM
  • fixes
  • align style
krytarowski marked 3 inline comments as done.Dec 7 2018, 3:55 PM
vitalybuka accepted this revision.Dec 7 2018, 4:00 PM
vitalybuka added inline comments.
test/sanitizer_common/TestCases/NetBSD/sha1.cc
134

better names would be nice.

This revision is now accepted and ready to land.Dec 7 2018, 4:00 PM
This revision was automatically updated to reflect the committed changes.