Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(985)

Unified Diff: webkit/plugins/ppapi/quota_file_io.h

Issue 7651002: Adding checks to guard against buffer overruns in QuotaFileIO::Write and base::FileUtilProxy::Write (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/plugins/ppapi/quota_file_io.h
===================================================================
--- webkit/plugins/ppapi/quota_file_io.h (revision 96790)
+++ webkit/plugins/ppapi/quota_file_io.h (working copy)
@@ -35,6 +35,7 @@
// Performs write or setlength operation with quota checks.
// Returns true when the operation is successfully dispatched.
+ // |bytes_to_write| must be geater than zero.
// |callback| will be dispatched when the operation completes.
// Otherwise it returns false and |callback| will not be dispatched.
// |callback| will not be dispatched either when this instance is

Powered by Google App Engine
This is Rietveld 408576698