DescriptionDon't pass null to memcmp.
This will allow us to add nonnull-attribute to the UBSAN bot.
We are in fact hitting a case where one of the arguments is null and the other
not, which seems dicey. I think the scenario is comparing the empty pathref
with another path ref that's just been COWed, without any verbs or points yet.
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/d4897591fddf8f2a4860066449fb7dd8b0cc7b77
Patch Set 1 #Patch Set 2 : allow either-or #Patch Set 3 : check instead #Patch Set 4 : loosen test when strlen == 0 #
Total comments: 2
Patch Set 5 : simplify check #Messages
Total messages: 11 (4 generated)
|