When I build RegexKitLite 4.0 in XCode 4.5.2 w iOS SDK 6.0, the static analyzer complains: \"The right operand of \'+\' is a garbage value\", and the 50-step static analysis sequence to exhibit this issue is pointing to iOS API\'s -NSMaxRange:range method. The RegexKitLite API that is invoking NSMaxRange is rkl_findRanges.
I\'m not sure if this is a false negative. I turned off static analysis of this file to ignore the warning, using the tip here: http://stackoverflow.com/a/8087544/260559
I am attaching a screenshot of the issue, showing the the 50-step (!!) static analysis sequence that clang thinks causes the problem.
Log in to post a comment.