Skip to content

Commit

Permalink
Fix for CB-9753 : index out of bounds on requestFileSystem. This closes
Browse files Browse the repository at this point in the history
  • Loading branch information
ThillaiganeshC authored and Raghav Katyal committed Mar 7, 2016
1 parent df0baa1 commit 68e4043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ios/CDVFile.m
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ - (void)requestFileSystem:(CDVInvokedUrlCommand*)command
int type = [strType intValue];
CDVPluginResult* result = nil;

if (type > self.fileSystems.count) {
if (type >= self.fileSystems.count) {
result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsInt:NOT_FOUND_ERR];
NSLog(@"No filesystem of type requested");
} else {
Expand Down

0 comments on commit 68e4043

Please sign in to comment.