Michał Kępień
18824a084b
isc_buffer_*(): if source can be NULL, only call memmove() when length is non-zero
...
Certain isc_buffer_*() functions might call memmove() with the second
argument (source) set to NULL and the third argument (length) set to 0.
While harmless, it triggers an ubsan warning:
runtime error: null pointer passed as argument 2, which is declared to never be null
Modify all memmove() call sites in lib/isc/include/isc/buffer.h and
lib/isc/buffer.c which may potentially use NULL as the second argument
(source) so that memmove() is only called if the third argument (length)
is non-zero.
(cherry picked from commit 6ddbca6f2b )
2018-05-15 09:28:17 +02:00
..
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-05-15 09:28:17 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-02-17 19:54:52 -08:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-02-23 10:38:02 +01:00
2018-05-15 09:28:17 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-02-23 10:38:02 +01:00
2018-02-23 10:38:02 +01:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-02-23 10:38:02 +01:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-02-23 10:38:02 +01:00
2018-02-23 10:38:02 +01:00
2018-02-23 10:38:02 +01:00
2018-05-11 14:19:35 +02:00
2018-03-15 18:40:21 -07:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2017-12-29 02:16:29 +00:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-02-23 10:38:02 +01:00
2018-05-11 14:19:35 +02:00
2018-05-11 11:29:58 +10:00
2018-05-11 14:19:35 +02:00
2018-05-15 09:28:17 +02:00
2018-02-26 10:39:44 +11:00
2018-02-23 10:38:02 +01:00
2018-05-11 14:19:35 +02:00
2018-02-23 10:38:02 +01:00
2018-02-23 10:38:02 +01:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-02-23 10:38:02 +01:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-02-23 10:38:02 +01:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-02-23 10:38:02 +01:00
2018-05-11 14:19:35 +02:00
2018-02-23 10:38:02 +01:00
2018-05-11 14:19:35 +02:00
2018-02-23 10:38:02 +01:00
2018-05-11 14:19:35 +02:00
2018-02-23 10:38:02 +01:00
2018-02-23 10:38:02 +01:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-02-23 10:38:02 +01:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-05-11 14:19:35 +02:00
2018-02-23 10:38:02 +01:00
2018-05-11 14:19:35 +02:00
2018-02-23 10:38:02 +01:00
2018-05-11 14:19:35 +02:00