-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Internal Code
-
Fully Compatible
-
ALL
-
-
Platforms 15 (06/03/16)
Some functions like memcpy and memcmp do not permit passing a nullptr for any of the pointer arguments, even if the length is null. However, some of our code does this. Under newer libc/ubsan combinations, these parameters are marked with the 'nonnull' attribute, and then ubsan complains when it sees nullptr actually passed, even if it works in practice.