You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ra...@apache.org on 2016/03/07 23:05:50 UTC

cordova-plugin-file git commit: Fix for CB-9753 : index out of bounds on requestFileSystem. This closes

Repository: cordova-plugin-file
Updated Branches:
  refs/heads/master df0baa171 -> 68e40437f


Fix for CB-9753 : index out of bounds on requestFileSystem. This closes


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/68e40437
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/68e40437
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/68e40437

Branch: refs/heads/master
Commit: 68e40437f48aa648e15653d74e007f5dbf5741ec
Parents: df0baa1
Author: Thillaiganesh, C <c....@accenture.com>
Authored: Wed Feb 17 14:16:55 2016 +0530
Committer: Raghav Katyal <ra...@microsoft.com>
Committed: Mon Mar 7 14:05:17 2016 -0800

----------------------------------------------------------------------
 src/ios/CDVFile.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/68e40437/src/ios/CDVFile.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVFile.m b/src/ios/CDVFile.m
index 8e7f845..ce36069 100644
--- a/src/ios/CDVFile.m
+++ b/src/ios/CDVFile.m
@@ -448,7 +448,7 @@ NSString* const kCDVFilesystemURLPrefix = @"cdvfile";
     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 {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org