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

Unified Diff: xfa/fxfa/include/xfa_ffapp.h

Issue 2430743003: in the attempt to fix 627393, changed IFX_FileRead's readBlock to return the length it reads
Patch Set: remove .tmp files Created 4 years, 2 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
« testing/libfuzzer/xfa_codec_fuzzer.h ('K') | « xfa/fxfa/app/xfa_ffapp.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fxfa/include/xfa_ffapp.h
diff --git a/xfa/fxfa/include/xfa_ffapp.h b/xfa/fxfa/include/xfa_ffapp.h
index 8a60ce6195dc187d4fa671f679a3eea46a5d88e2..59096696d4d7bc5c94e315b2f041a30a566149c3 100644
--- a/xfa/fxfa/include/xfa_ffapp.h
+++ b/xfa/fxfa/include/xfa_ffapp.h
@@ -29,12 +29,15 @@ class CXFA_FileRead : public IFX_FileRead {
~CXFA_FileRead() override;
// IFX_FileRead
+ FX_BOOL IsEOF() override;
FX_FILESIZE GetSize() override;
- FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override;
+ size_t ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override;
void Release() override;
protected:
CFX_ObjectArray<CPDF_StreamAcc> m_Data;
+ FX_FILESIZE m_FileSize;
+ FX_FILESIZE m_nCurPos;
};
class CXFA_FFApp {
« testing/libfuzzer/xfa_codec_fuzzer.h ('K') | « xfa/fxfa/app/xfa_ffapp.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698