Make utf-8 conversion more robust to bad input.
This commit is contained in:
@@ -76,6 +76,7 @@ public class LStringTest extends TestCase {
|
||||
assertEquals( userFriendly( before ), userFriendly( after ) );
|
||||
|
||||
}
|
||||
|
||||
public void testNullTerminated() {
|
||||
char[] c = { 'a', 'b', 'c', '\0', 'd', 'e', 'f' };
|
||||
String before = new String(c);
|
||||
|
||||
Reference in New Issue
Block a user