Am Sat, 01 Aug 2026 15:19:15 +0200
schrieb "Jürgen Spitzmüller" <[email protected]>:

> Am Samstag, dem 01.08.2026 um 14:47 +0200 schrieb Kornel Benko:
> > But tex2lyx initialises its color table.
> > 
> > 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 == 2^^9, I saw no reason for this behaviour.
> > 
> > The other colors like "magicmint" (== 511) and "mahogany" (== 513)
> > displayed no problems.  
> 
> No idea.
> 

The error is displayed when compiling g++ with '-fsanitize=undefind'.
Sanitize is checking if the index value fits into enum ColorCode.
But we have
enum ColorCode {
 ...
 color_max = 500
};

Since our number of colors exceeds 860, this is too small. Changing the value 
to 1000 now.

No error.

        Kornel

Attachment: pgpfE2JZvmCZy.pgp
Description: Digitale Signatur von OpenPGP

-- 
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to