Where:
NSUInteger LEDataRangeLength(LEDataRange aRange) __attribute__((const));The following:
LEDataRange const dataRange = self.dataRange;
if(LEDataRangeLength(dataRange) == 0)
return NO;
else {
double *values = malloc(sizeof(double) * LEDataRangeLength(dataRange));Causes the static analyzer to say:
Call to 'malloc' has an allocation size of 0 bytes
Despite that dataRange & LEDataRangeLength being const, there's no chance of the length being 0