From c75ed764ef2a74bf3ab645ca7a73c0c692477755 Mon Sep 17 00:00:00 2001 From: Kenichi Ishibashi Date: Wed, 4 Jun 2014 08:29:53 +0900 Subject: [PATCH] Avoid using data() of std::vector in woff2_dec --- woff2/woff2_dec.cc | 4 ++-- 1 file 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(); } }