| Index: src/woff2.cc
|
| diff --git a/src/woff2.cc b/src/woff2.cc
|
| old mode 100644
|
| new mode 100755
|
| index 9cd96ff25268437c58dabd9ffb3127a8a819e38a..28e6a3695d3e90def96a6b05caf1f0473e08a1d4
|
| --- a/src/woff2.cc
|
| +++ b/src/woff2.cc
|
| @@ -634,14 +634,14 @@ bool ReconstructGlyf(const uint8_t* data, size_t data_size,
|
| }
|
| StoreU16(glyf_dst, 0, n_contours);
|
| ComputeBbox(points, glyf_dst);
|
| - size_t offset = kEndPtsOfContoursOffset;
|
| + size_t endpts_offset = kEndPtsOfContoursOffset;
|
| int end_point = -1;
|
| for (unsigned int contour_ix = 0; contour_ix < n_contours; ++contour_ix) {
|
| end_point += n_points_vec.at(contour_ix);
|
| if (end_point >= 65536) {
|
| return OTS_FAILURE();
|
| }
|
| - offset = StoreU16(glyf_dst, offset, static_cast<uint16_t>(end_point));
|
| + endpts_offset = StoreU16(glyf_dst, endpts_offset, static_cast<uint16_t>(end_point));
|
| }
|
| if (!flag_stream.Skip(flag_size)) {
|
| return OTS_FAILURE();
|
| @@ -870,7 +870,7 @@ bool ConvertWOFF2ToTTF(uint8_t* result, size_t result_length,
|
| ots::Buffer file(data, length);
|
|
|
| uint32_t signature;
|
| - uint32_t flavor;
|
| + uint32_t flavor = 0;
|
| if (!file.ReadU32(&signature) || signature != kWoff2Signature ||
|
| !file.ReadU32(&flavor)) {
|
| return OTS_FAILURE();
|
|
|