diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-07-30 16:46:28 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-07-30 16:46:28 -0700 |
commit | 91b70b112e9076b3a866572fe8d2d17cfe5faa9e (patch) | |
tree | 472101ea19a0e2237d02a1a09dc47ccb90e85879 /core/src | |
parent | 06b60021edacf7e4f2d1b1468a3aa898bab10301 (diff) | |
download | pdfium-91b70b112e9076b3a866572fe8d2d17cfe5faa9e.tar.xz |
Merge to XFA: Fix return check in CFX_FolderFontInfo::ScanFile() fread.
(cherry picked from commit 6fc1bf199833d6cb409e8134fe5d6894e8323673)
Original Review URL: https://codereview.chromium.org/1262453006 .
R=thestig@chromium.org
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/1263813004 .
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/fxge/ge/fx_ge_fontmap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fxge/ge/fx_ge_fontmap.cpp b/core/src/fxge/ge/fx_ge_fontmap.cpp index fd96ff24ab..8b1342954a 100644 --- a/core/src/fxge/ge/fx_ge_fontmap.cpp +++ b/core/src/fxge/ge/fx_ge_fontmap.cpp @@ -1464,7 +1464,7 @@ void CFX_FolderFontInfo::ScanFile(CFX_ByteString& path) } FX_DWORD face_bytes = nFaces * 4; uint8_t* offsets = FX_Alloc(uint8_t, face_bytes); - readCnt = FXSYS_fread(offsets, face_bytes, 1, pFile); + readCnt = FXSYS_fread(offsets, 1, face_bytes, pFile); if (readCnt != face_bytes) { FX_Free(offsets); FXSYS_fclose(pFile); |