Skip to content

Commit

Permalink
fix check for undefined behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
tapaswenipathak authored and nlhien committed Feb 28, 2020
1 parent 35855b8 commit d15d3a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/protobuf/stubs/structurally_valid.cc
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ int UTF8GenericScan(const UTF8ScanObj* st,
const uint8* isrc = reinterpret_cast<const uint8*>(str);
const uint8* src = isrc;
const uint8* srclimit = isrc + str_length;
const uint8* srclimit8 = srclimit - 7;
const uint8* srclimit8 = str_length < 7 ? isrc : srclimit - 7;
const uint8* Tbl_0 = &st->state_table[st->state0];

DoAgain:
Expand Down

0 comments on commit d15d3a5

Please sign in to comment.