Re: tex2lyx2.6 runtime error
Kornel Benko <[email protected]> Sun, 2 Aug 2026 10:13:46 +0200
| Newsgroups | gmane.editors.lyx.devel |
|---|---|
| Message-ID | <20260802101346.249f705c@admin1-desktop> |
--===============7749950656060749637== Content-Type: multipart/signed; boundary="Sig_/TbegveLewuRsh+qotVhoMES"; protocol="application/pgp-signature"; micalg=pgp-sha512 --Sig_/TbegveLewuRsh+qotVhoMES Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am Sat, 01 Aug 2026 15:19:15 +0200 schrieb "J=C3=BCrgen Spitzm=C3=BCller" <[email protected]>: > Am Samstag, dem 01.08.2026 um 14:47 +0200 schrieb Kornel Benko: > > But tex2lyx initialises its color table. > >=20 > > As long as I could debug, it happens while parsing latex color > > "magnolia", which gets the > > number 512. There is nothing special in > > lib/layouts/latexcolors.module. > > Apart from 512 =3D=3D 2^^9, I saw no reason for this behaviour. > >=20 > > The other colors like "magicmint" (=3D=3D 511) and "mahogany" (=3D=3D 5= 13) > > displayed no problems. =20 >=20 > No idea. >=20 The error is displayed when compiling g++ with '-fsanitize=3Dundefind'. Sanitize is checking if the index value fits into enum ColorCode. But we have enum ColorCode { ... color_max =3D 500 }; Since our number of colors exceeds 860, this is too small. Changing the val= ue to 1000 now. No error. Kornel --Sig_/TbegveLewuRsh+qotVhoMES Content-Type: application/pgp-signature Content-Description: Digitale Signatur von OpenPGP -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE75EqQxV38F6szpLQb1AEVgNfRFsFAmpu/DoACgkQb1AEVgNf RFtdLwf7BpeNKzqFssxAEYyrObDKtmXszUXNzWqtzPdVo3lIEHjZldLVOkx43JIP 1Mc4t8d0j3XTVbCGS/o1uEiq3eSSvE7EKGbEJxK1NdlnC1XdjG5w/iEMI8rcpsxA 8LOklD6rrh3UTCbDt+BYChLh+XNZNZYbkxzMCmNTddt6NwSL14hIjUbckfu495Eo RoAB21jPCUypc8B1qRQuApF2gbmP2lJq0ZMWjvLmHiZumcwAjL835Yn6tuiKXKyD iKgAOxJM/ZiimeKeVzpPvsO5D4ODVQe2B8r5jqgMcAsRFQX2C+Ks9PJw3RW7xysw bTG5AB2JYmb4St3VwFp/I5owDdxpBA== =Tpbd -----END PGP SIGNATURE----- --Sig_/TbegveLewuRsh+qotVhoMES-- --===============7749950656060749637== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- lyx-devel mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-devel --===============7749950656060749637==--