Menu ▾ ▴

#67 XCode 4.5.2 analyzer complains about garbage value

RegexKitLite 4.0
open
5
2013-01-16
2013-01-16
Jeff
No

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.

Discussion

  • Jeff

    Jeff - 2013-01-16

    Screenshot showing XCode 4.5.2 static analyzer results

     

Log in to post a comment.