skia-python icon indicating copy to clipboard operation
skia-python copied to clipboard

Re-examine the SkFontArguments::VariationPosition code regarding life time and zero length input

Open HinTak opened this issue 11 months ago • 1 comments

See https://github.com/kyamagu/skia-python/pull/297#issuecomment-2571462743

HinTak avatar Jan 05 '25 01:01 HinTak

The setvariationpositioncoordinates method needs a zero length check to avoid setting the coords to garbage and potentially segfault there, and it also needs a keep_alive policy when used in the set property usage. And in the constructor too!

HinTak avatar Jan 05 '25 01:01 HinTak