<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/117729>117729</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
UBSan diagnostics should say the name of the sanitizer
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
davidben
</td>
</tr>
</table>
<pre>
When enabling UBSan, you get errors that look like:
```
...: runtime error: reference binding to address ... with insufficient space for an object of type '...'
```
But this doesn't say which sanitizer option triggered that message. You have to grep for the error message in LLVM source, which can be difficult with line breaks and different chunks being assembled from different places. Reasons you might want to know the precise name of the sanitizer:
* Temporarily adding a fine-grained suppression without suppressing every sanitizer
* Look up more information about this particularly check (e.g. how does it know the size? is it compile-time information or runtime information?)
When Clang emits a warning, it says the name of the warning flag. It would be nice for sanitizer warnings to do the same.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxcVEuL4zgQ_jXKpWiTyHm0Dz6kZwks9F72yR7LUtmujSwZlZyQ-fWLlMwkNBgMpZLqe0kowoMnatXuQ-1-WeGSxhBbixe2HflVF-yt_WckD-Sxc-wH-OvjD_RKf4NbWGCgBBRjiAJpxAQuhDM4PpOqj2pdvv368a2PVVWp-ghx8Yknum8sBeopkjcEHXubh6QAaG0kEaiqCq6cRmAvS9-zYfIJZEZD0IcI6CF0_5FJEHpIt5lA6UOepA9fxqv18WNJkEYWsIHEK31IIHiD68hmBEHPib9ThDAnDh5S5GGgSPZObiIRHKiCf8MCI14owxwizQVHGh-MfvQBe_j8_Ps3kLBEQ1my-xyDHjoCy5nN4tKdnmNP0EXCswB6W5azKgnMuPizQEdZGRShqXNkoY9heumaHRqSCn4nlOCl2DPxMCa4ok8Z6tmHa4E5RzIsBB4nKqqN9CT_dE4f4U-a5hAxsrtlQwoA6NnT2xCRPVmQZZ6zT1mvzCMs6VnzA9CF4u3l9Pu5nzknywxTiFmnPsQJi-TYhR8WzRhT1geju4EZyZxB6XeqhgrGcC0OAqcnK-HvpOoTcCmbMM3s6K0k7XVCiD8D-FJW9Unp5k685P2bw4x-4iSAcMXo2Q_ZQy6RkTLyVcBHC_QOhwp-TXANi7PZaM-PqD4D9miWbIsNDwMmqla2rW1TN7iidnOo9b7eb_R-Nbb1e7evd-vD-4621DW2s7Q1-tAYS41BxBW3eq23m43eb3bb9-2-qvW61k2zbZr9Vje1Uds1Tciucu4yVSEOKxZZqN1sDgfdrBx25KS8A1p7ukJZVVrnZyG2edNbtwyitmvHkuR5TOLkqC3PAljGwQdJbARkLALk-_VVq59CrJbo2jGlWXLs9Enp08BpXLrKhEnpUx7y-L3NMeRrrvSpQBOlTw_sl1b_HwAA__-yv6PH">