Bug 38908 - Android's writeToFile() is buggy
Summary: Android's writeToFile() is buggy
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Android Android
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-11 08:15 PDT by Steve Block
Modified: 2010-05-12 05:51 PDT (History)
2 users (show)

See Also:


Attachments
Patch (2.20 KB, patch)
2010-05-11 09:11 PDT, Steve Block
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Block 2010-05-11 08:15:02 PDT
Android's version of writeToFile() attempts to handle the case where the write is interrupted part way through such that the number of bytes written is less than the number of bytes requested. However, the implementation is buggy as the data pointer is not updated when the write is re-tried.

We should remove the Android-specific version and use the POSIX version.
Comment 1 Steve Block 2010-05-11 09:11:21 PDT
Created attachment 55708 [details]
Patch
Comment 2 WebKit Commit Bot 2010-05-12 05:51:38 PDT
Comment on attachment 55708 [details]
Patch

Clearing flags on attachment: 55708

Committed r59226: <http://trac.webkit.org/changeset/59226>
Comment 3 WebKit Commit Bot 2010-05-12 05:51:42 PDT
All reviewed patches have been landed.  Closing bug.