This is an archive of the discontinued LLVM Phabricator instance.

[sanitizer] use the right type for sizeof for interceptor hook
ClosedPublic

Authored by yingcong-wu on Jul 6 2023, 7:06 PM.

Details

Summary

PRE_READ is called with a pointer and the size of the object
the pointer points to. But there is one line of code not calling
PRE_READ correctly(likely missing a dereference).
This patch fixes the problem.

Diff Detail

Event Timeline

yingcong-wu created this revision.Jul 6 2023, 7:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 6 2023, 7:06 PM
Herald added a subscriber: Enna1. · View Herald Transcript
yingcong-wu requested review of this revision.Jul 6 2023, 7:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 6 2023, 7:06 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
MaskRay accepted this revision.Jul 17 2023, 11:56 AM

Thanks!

This revision is now accepted and ready to land.Jul 17 2023, 11:56 AM

Hi @MaskRay, I don't have commit access, could you please help commit this patch?

Kindly ping @MaskRay , could you help land this patch? Thanks.

This revision was automatically updated to reflect the committed changes.