Skip to content

Commit

Permalink
array index out of bounds in hex lookup (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyselwood authored and cowtowncoder committed Nov 8, 2019
1 parent 6d26980 commit a8d4cd4
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -20,4 +20,12 @@ public void testAppendQuoted0_31 ()
assertEquals(expected, actual);
}
}

public void testHexOutOfRange()
{
final int[] inputs = {0, -1, 1, 129, -129};
for (int input : inputs) {
assertEquals(-1, CharTypes.charToHex(input));
}
}
}

0 comments on commit a8d4cd4

Please sign in to comment.