toUTF8 seg-v on bad input
Thomas Kuehne
thomas-dloop at kuehne.cn
Sun Apr 22 14:02:08 PDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
BCS schrieb am 2007-04-08:
> If std.utf.toUTF8(dchar[]) is given bad input it sometimes seg-v's. DMD also
> seg-v's if the same input undergoes a dchar[] -> char[] translation at compile
> time. I'll post a string that does it when I find another case.
Are you sure that toUTF8(char[]) segfaulted? The only case I see would
be elements with values above 0x10FFFF, though you should file a bug for
that case because Phobos uses "assert(0)" instead of "throw ...".
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFGK81ELK5blCcjpWoRAhxZAJ92nt6H2ZIwwgVQk3OdziQXAzCqjQCfZe34
MdcZXk3amyspA9M5ylW1TOQ=
=MFzd
-----END PGP SIGNATURE-----
More information about the Digitalmars-d-bugs
mailing list