diff options
author | Bo Xu <bo_xu@foxitsoftware.com> | 2014-07-14 12:13:53 -0700 |
---|---|---|
committer | Bo Xu <bo_xu@foxitsoftware.com> | 2014-07-14 12:13:53 -0700 |
commit | 8daab317ff959905e926b861a7d2aa876fd10429 (patch) | |
tree | d42dbefe9bbdf4492c537253fbc23abf21585fb5 /core/src/fxcrt/fx_basic_util.cpp | |
parent | 456cde93a928629bbf2ac64bda13ef7923359823 (diff) | |
download | pdfium-8daab317ff959905e926b861a7d2aa876fd10429.tar.xz |
Fix an out-of-boundary issue for wide string
BUG=381521
R=palmer@chromium.org
Review URL: https://codereview.chromium.org/383563002
Diffstat (limited to 'core/src/fxcrt/fx_basic_util.cpp')
-rw-r--r-- | core/src/fxcrt/fx_basic_util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fxcrt/fx_basic_util.cpp b/core/src/fxcrt/fx_basic_util.cpp index 1d947d3fed..dc5eea7821 100644 --- a/core/src/fxcrt/fx_basic_util.cpp +++ b/core/src/fxcrt/fx_basic_util.cpp @@ -273,7 +273,7 @@ CFX_WideString FX_DecodeURI(const CFX_ByteString& bsURI) rURI += bsURI[i]; } } - return CFX_WideString::FromUTF8(rURI); + return CFX_WideString::FromUTF8(rURI, rURI.GetLength()); } #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ class CFindFileData : public CFX_Object |