aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenichi Ishibashi <bashi@google.com>2014-06-04 08:29:53 +0900
committerKenichi Ishibashi <bashi@google.com>2014-06-04 08:29:53 +0900
commitc75ed764ef2a74bf3ab645ca7a73c0c692477755 (patch)
treeed8dff142c6ca0ad50bea0683595e8518276c48e
parent142d8881c174896c0180d60d3efe66a07daa7256 (diff)
downloadsrc-c75ed764ef2a74bf3ab645ca7a73c0c692477755.tar.gz
Avoid using data() of std::vector in woff2_dec
-rw-r--r--woff2/woff2_dec.cc4
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();
}
}