digitalmars.D.bugs - [patch] empty numeric html entities
- Thomas Kuehne (26/26) Dec 01 2004 -----BEGIN PGP SIGNED MESSAGE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 test cases: http://svn.kuehne.cn/dstress/nocompile/html_empty_entity_01.html http://svn.kuehne.cn/dstress/nocompile/html_empty_entity_02.html Thomas diff -u dmd.108.org/dmd/src/dmd/html.c dmd.108/dmd/src/dmd/html.c - --- dmd.108.org/dmd/src/dmd/html.c 2004-02-21 11:30:44.000000000 +0100 +++ dmd.108/dmd/src/dmd/html.c 2004-12-01 11:00:39.598752840 +0100 -110,6 +110,9 int c; c = charEntity(); + if(c<1){ + error("invalid entity value \"%i\"", c); + } buf->writeByte(c); // BUG: wchar } else -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.9.12 (GNU/Linux) iD8DBQFBrZzB3w+/yD4P9tIRAspfAJ9j5wmbMGhT1tvE3RqkXD94IzIRlwCg0so6 oJuLKLXNpSG4dUy/6ls+bOA= =Pw5x -----END PGP SIGNATURE-----
Dec 01 2004