Avoid strncmp with zero size and nullptr argument
@@ -984,7 +984,7 @@ FRT_Values::DecodeBig(FNET_DataBuffer *src, uint32_t len)
}
if (len != 0) goto error;
- if (strncmp(typeString, _typeString, numValues) != 0) goto error;
+ if ((numValues > 0) && strncmp(typeString, _typeString, numValues) != 0) goto error;
return true;
error:
