snprintf returns buffer size needed for printing. If buffer was small, calling
code receives incorrectly symbolized buffer and fail.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/sanitizer_common/sanitizer_symbolizer_libcdep.cc | ||
---|---|---|
361 ↗ | (On Diff #86778) | I think it should be >=. Writes at most "length" symbols to "buffer" (including trailing '\0'). |
lib/sanitizer_common/symbolizer/sanitizer_symbolize.cc | ||
45 ↗ | (On Diff #86778) | I think it should be <. |
test/sanitizer_common/TestCases/symbolize_stack.cc | ||
---|---|---|
1 ↗ | (On Diff #86869) | add a comment that you are testing symbolization of very long function names |