swiftlang/swift

[SR-11884] Link-In ubsan_standalone If libFuzzer is used in Isolation

Open

#54,300 opened on Dec 2, 2019

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Swift (10,719 forks)batch import
compilergood first issueimprovementlegacy driver

Repository metrics

Stars
 (69,989 stars)
PR merge metrics
 (Avg merge 8d 17h) (510 merged PRs in 30d)

Description

Previous ID SR-11884
Radar rdar://problem/57561703
Original Reporter @CodaFi
Type Improvement
Votes 0
Component/s Compiler
Labels Improvement, Driver, StarterBug
Assignee None
Priority Medium

md5: dbc17fedacd6b7aadfdf4e5529d7bd3d

Issue Description:

libFuzzer can be used apart from the other sanitizers, but it still relies on compiler RT primitives to get its job done. We should detect if the user is just linking libFuzzer standalone and automatically add ubsan_standalone to the link line.

Contributor guide