[gnutls-devel] libtasn1 | coding.c: fix undefined behavior with pointer arithmetics (!63)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Mon May 4 12:12:26 CEST 2020




Tim Rühsen commented:


Thanks for the fix. The CI currently mourns about your changes, can you fix that ?
```
coding.c:291:5: warning: Null pointer passed as an argument to a 'nonnull' parameter
    memcpy (der + len_len, str, str_len);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
coding.c:437:7: warning: Null pointer passed as an argument to a 'nonnull' parameter
      memmove (der + len_len, der, *der_len);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
Or is that unrelated ?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/libtasn1/-/merge_requests/63#note_335802420
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20200504/aa4d1c90/attachment.html>


More information about the Gnutls-devel mailing list