skia-python
skia-python copied to clipboard
Re-examine the SkFontArguments::VariationPosition code regarding life time and zero length input
See https://github.com/kyamagu/skia-python/pull/297#issuecomment-2571462743
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!