UBSan complains like the following:
tools/lld/COFF/Writer.cpp:97:15: runtime error: null pointer passed as argument 2, which is declared to never be null
The reason is that the vector could be empty.
Differential D24050
Fix UBSan bot by not passing NULL into memcpy src. krasin on Aug 30 2016, 11:52 AM. Authored by
Details UBSan complains like the following: The reason is that the vector could be empty.
Diff Detail Event Timeline
Comment Actions I have submitted the CL, as it's aimed to fix a bot. Feel free to send post-submit comments, and I will create a follow-up CL, if needed. |
Please use !Config->PDBPath.empty(). See relevant Clang-tidy check.