diff options
author | Phil Turnbull <philipturnbull@github.com> | 2017-07-05 15:29:15 -0400 |
---|---|---|
committer | Yuki Izumi <ashe@kivikakk.ee> | 2017-07-06 11:36:18 +1000 |
commit | ff28e0d00dbf8c4f84bbb379aa87257ae31cdd9d (patch) | |
tree | 48214456c5b9b45dae8d973f5a918862788dc21e /src/xml.c | |
parent | 4b83812e6780e4a58669272a7426f1491711ca8c (diff) |
Avoid memcpy'ing NULL pointers
A UBSAN warning can be triggered because the link title is an empty string:
src/inlines.c:113:20: runtime error: null pointer passed as argument 2, which is declared to never be null
which can be triggered by:
```
[f]:_
[f]
```
The length of the memcpy is zero so the NULL pointer is not dereferenced but it
is still undefined behaviour.
Diffstat (limited to 'src/xml.c')
0 files changed, 0 insertions, 0 deletions