This is an archive of the discontinued LLVM Phabricator instance.

Fix DataFlowSanitizer implementation of strchr() so that strchr(..., '\0') returns a pointer to '\0'.
ClosedPublic

Authored by skerner on Apr 12 2020, 9:51 PM.

Diff Detail

Event Timeline

skerner created this revision.Apr 12 2020, 9:51 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 12 2020, 9:51 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript

The CI failure message from "clang-tidy linux" is:

/mnt/disks/ssd0/agent/workspace/amd64_debian_testing_clang8/compiler-rt/lib/dfsan/dfsan_custom.cpp:14:10: error: 'sanitizer_common/sanitizer_common.h' file not found [clang-diagnostic-error]
#include "sanitizer_common/sanitizer_common.h"

This file definitely exists, and is included successfully when compiling. I think this is a known bug in the clang-tidy configuration:

https://github.com/google/llvm-premerge-checks/issues/156

morehouse accepted this revision.Apr 15 2020, 1:00 PM
morehouse added a subscriber: morehouse.

LGTM

This revision is now accepted and ready to land.Apr 15 2020, 1:00 PM
This revision was automatically updated to reflect the committed changes.