diff options
author | Craig Tiller <ctiller@google.com> | 2016-04-21 23:57:05 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-04-21 23:57:05 -0700 |
commit | bdc2410da727500f62d0be3d30bf8eee02f677f4 (patch) | |
tree | 0f9c7ae3c0c2c7689febe86719ffb25ae00be754 /src/core/lib | |
parent | 4c79cb206d68959f7c1f8701c2076abd90f3f8ad (diff) |
Expand corpus, fix crash
Diffstat (limited to 'src/core/lib')
-rw-r--r-- | src/core/lib/surface/validate_metadata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/surface/validate_metadata.c b/src/core/lib/surface/validate_metadata.c index bf4126867f..84f0a083bc 100644 --- a/src/core/lib/surface/validate_metadata.c +++ b/src/core/lib/surface/validate_metadata.c @@ -40,7 +40,7 @@ static int conforms_to(const char *s, size_t len, const uint8_t *legal_bits) { const char *p = s; const char *e = s + len; for (; p != e; p++) { - int idx = *p; + int idx = (uint8_t)*p; int byte = idx / 8; int bit = idx % 8; if ((legal_bits[byte] & (1 << bit)) == 0) return 0; |