It's possible for the code fragment below from AGProcess.m to be reached with argumentCount set to 0 and [args count] > 0, which results in the following error:
*** -[NSCFArray objectAtIndex:]: index (-1( or possibly larger)) beyond bounds (25)
triggered at line 602:
598 if (argumentCount >= 0) {
599 // we're using the newer sysctl selector, so use the argument count (less one for the command argument)
600 int i;
601 for (i = [args count] - 1; i >= (argumentCount - 1); i--) {
602 NSString *string = [args objectAtIndex:i];
603 int index = [string rangeOfString:@"="].location;
604 if (index != NSNotFound)
605 [env setObject:[string substringFromIndex:index + 1] forKey:[string substringToIndex:index]];
606 }
607 args = [args subarrayWithRange:NSMakeRange(0, i + 1)];
Logged In: YES
user_id=2118634
Originator: NO
This was submitted by me.