Re: [ovs-dev] [PATCH v3 01/14] treewide: Don't pass NULL to library functions that expect non-NULL.

2022-02-15 Thread Ilya Maximets
On 2/3/22 17:33, Paolo Valerio wrote: > Dumitru Ceara writes: > >> It's actually undefined behavior to pass NULL to standard library >> functions that manipulate arrays (e.g., qsort, memcpy, memcmp), even if >> the passed number of items is 0. >> >> UB Sanitizer reports: >> ovsdb/monitor.c:408:

Re: [ovs-dev] [PATCH v3 01/14] treewide: Don't pass NULL to library functions that expect non-NULL.

2022-02-03 Thread Paolo Valerio
Dumitru Ceara writes: > It's actually undefined behavior to pass NULL to standard library > functions that manipulate arrays (e.g., qsort, memcpy, memcmp), even if > the passed number of items is 0. > > UB Sanitizer reports: > ovsdb/monitor.c:408:9: runtime error: null pointer passed as argumen

[ovs-dev] [PATCH v3 01/14] treewide: Don't pass NULL to library functions that expect non-NULL.

2022-01-24 Thread Dumitru Ceara
It's actually undefined behavior to pass NULL to standard library functions that manipulate arrays (e.g., qsort, memcpy, memcmp), even if the passed number of items is 0. UB Sanitizer reports: ovsdb/monitor.c:408:9: runtime error: null pointer passed as argument 1, which is declared to never be