include_if_exists=/path/to/asan/options reads flags from the file if it is present.
"%b" in the include file path (for both variants of the flag) is replaced with the basename of the main executable.
Details
Diff Detail
Event Timeline
LGTM
lib/sanitizer_common/sanitizer_flags.cc | ||
---|---|---|
88 | I would be prefer smth. more verbose like "optional_include", but this is optional. |
lib/sanitizer_common/sanitizer_flags.cc | ||
---|---|---|
48 | Add a comment that out should be at least kMaxPathLength. Also, you don't seem to actually trim s to this. constant if necessary. Consider using InternalScopedString *out and out->append() instead. | |
55 | if base was trimmed, you would advance pointer t too far, and may make an out-of-bound write on the next iteration. |
Renamed the option to a more obvious name.
Do you think we should change "%b" to something else? "b" stands for basename (as in man 1 basename). Maybe %n?
Add a comment that out should be at least kMaxPathLength. Also, you don't seem to actually trim s to this. constant if necessary. Consider using InternalScopedString *out and out->append() instead.