commit | 8db62f5a77fd53543dd58e12da7bd96082228893 | [log] [tgz] |
---|---|---|
author | Sam James <sam@gentoo.org> | Tue Oct 08 16:48:19 2024 +0100 |
committer | Sam James <sam@gentoo.org> | Tue Oct 08 16:57:40 2024 +0100 |
tree | 0cd4954e87535c784b7ee3af64e280c774a56286 | |
parent | 211cc5f2ea5523f9dc2430de4fd8e5b423465e86 [diff] |
fontconfig: mark _FcPatternIter as may_alias We had a report of GCC 14 with -O3 -flto causing wrong font sizes with fontconfig (showing up in qalculate-gtk). It turns out to be because _FcPatternIter and _FcPatternPrivateIter are punned between which violates strict-aliasing rules, which manifested in FcDefaultSubstitute getting a bogus value from FcValueCanonicalize for size. void* isn't allowed to alias anything -- you can pass addresses around provided you cast back to the original type, but if you access through the wrong type, you've violated aliasing rules. Bug: https://bugs.gentoo.org/940923 Signed-off-by: Sam James <sam@gentoo.org>
Font configuration and customization library
[[TOC]]
Fontconfig can:
Fontconfig does not:
If you have encountered any issues relating to Fontconfig, please file an issue in the GitLab issue tracker.