diff options
author | Kenichi Ishibashi <bashi@google.com> | 2014-06-04 08:29:53 +0900 |
---|---|---|
committer | Kenichi Ishibashi <bashi@google.com> | 2014-06-04 08:29:53 +0900 |
commit | c75ed764ef2a74bf3ab645ca7a73c0c692477755 (patch) | |
tree | ed8dff142c6ca0ad50bea0683595e8518276c48e | |
parent | 142d8881c174896c0180d60d3efe66a07daa7256 (diff) | |
download | src-c75ed764ef2a74bf3ab645ca7a73c0c692477755.tar.gz |
Avoid using data() of std::vector in woff2_dec
-rw-r--r-- | woff2/woff2_dec.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/woff2/woff2_dec.cc b/woff2/woff2_dec.cc index e028e31..fda5d85 100644 --- a/woff2/woff2_dec.cc +++ b/woff2/woff2_dec.cc @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. // -// Library for converting TTF format font files to their WOFF2 versions. +// Library for converting WOFF2 format font files to their TTF versions. #include "./woff2_dec.h" @@ -883,7 +883,7 @@ bool ConvertWOFF2ToTTF(uint8_t* result, size_t result_length, } if (continue_valid) { transform_buf += transform_length; - if (transform_buf > uncompressed_buf.data() + uncompressed_buf.size()) { + if (transform_buf > &uncompressed_buf[0] + uncompressed_buf.size()) { return FONT_COMPRESSION_FAILURE(); } } |