Link error when compiling with -fsanitize=undefined

Jean-Marc Lasgouttes lasgouttes at lyx.org
Mon Sep 20 09:03:49 UTC 2021


Le 19/09/2021 à 20:15, Scott Kostyshak a écrit :
> It seems that it is triggered with a lot of branches (or perhaps more generally any different kind of insets?). Attached is an LFUN sequence that reproduces it. Does it trigger the error for you?

Look at ColorSet::setColor in Color.cpp. Branches have user-set colors, 
and they are assigned a synthetic color value beyond the ColorCode 
values. You could fix this by replacing all the ColorCode types to int, 
but there is no real bug to fix here IMO.

JMarc


More information about the lyx-devel mailing list