partnerparticle opened a new issue, #667:
URL: https://github.com/apache/cordova-plugin-file/issues/667

   # Bug Report
   
   ## Problem
   
   Writes above 2Gb offset are not possible on Android, because int is used
   
   ### What is expected to happen?
   
   Writes above 2Gb offset should work and not overflow
   
   
   ### What does actually happen?
   
   Writes above 2Gb offset overflow due to use of int, so write operations 
above the 2Gb limit are not possible, instead they are performed within the 2Gb 
range, corrupting the file.
   
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   Check the following files:
   src/android/FileUtils.java
     args.getInt(2)       should be -> args.getLong(2)
     write(... int offset ...) should be -> write(... long offset ...)
   
   src/android/Filesystem.java
     writeToFileAtURL(... int offset ...) should be -> writeToFileAtURL(... 
long offset ...)
   
   src/android/LocalFilesystem.java
     writeToFileAtURL(... int offset ...) should be -> writeToFileAtURL(... 
long offset ...)
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   
   Android
   
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [X] I searched for existing GitHub issues
   - [X] I updated all Cordova tooling to most recent version
   - [X] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to