<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/111546>111546</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
expand usage of LIBC_ADD_NULL_CHECKS
</td>
</tr>
<tr>
<th>Labels</th>
<td>
good first issue,
libc
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
nickdesaulniers
</td>
</tr>
</table>
<pre>
1896ee38898a73ea9c2894e848884c8999884ab1 added a config option to check for nullptr args to math.h functions. I think we could expand the usage of this macro to additional functions that accept pointer args that are defined by the standard to be non-null (or UB occurs in the case of NULL) (example: `memcpy`). This would allow us to provide a hardened config.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxEks9u5CgQh58GX0qxDLa78cGHpHtbG220l92cowLKNhMMFuD8efsRnszkhFD9-PioAlOysycaWf_A-muFe15CHL3Vr4YS7s5biqlSwXyOXA4nolbKQeK5JRy0kENHspNSdloOwyBlh4oDGkMGEHTwk50hbNkGDzmAXki_whQi-N25LUfAOKdSWTEv9QLT7nUJpxrgEfJi_Su8E-iwOwP0saE3kBeCPeFMEKYSSbCijqFQ0BhbjqP7JkFeMANqTVuGLVif6fe1RyESGJqsJwPq84CnjN5gNIWoCHzwd0UXmJAhwvMDBK33mMD6I64xHSr_Pj89MTGUGH3gujli7T2wU7PSqrdPdmqYGGqA_4vy-_EidC68w350YIvhzRoChAWjoeLzq391ZcbWDO2AFY38LGTXcH5uq2XsT3JqkJ9PmhT1jdKNnjrNW8m1EqKXlR1FIzreNJL34sTbWhMJfVZTP_Gu0UqxrqEVraude1vrEOfKprTTyDnvu1PlUJFLx98QYg7BwGRjynCEmBBMXJgQzipdNv21imMB3al9TqxrnE05faOzzY7Gryn-meDT48Pl5f56fSn9e7n8_dfln_-qPbpxyXlLrL1n4sbEbbZ52VWtw8rErSC_lrsthh-kMxO3wyoxcfuyfxvFzwAAAP__MJzx9g">