Skip to content
Snippets Groups Projects
Commit bdc2410d authored by Craig Tiller's avatar Craig Tiller
Browse files

Expand corpus, fix crash

parent 4c79cb20
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment