diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-08-23 10:45:26 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-08-23 11:28:30 -0400 |
commit | de73d6c51a7901de870c540004096ca9777df0f1 (patch) | |
tree | e4b499ee0392349e42e7ce937b9ef7328af39fec /src | |
parent | 9133e799b57b96ef3bbf4787d1911f34d5cf6f14 (diff) | |
download | fontconfig-de73d6c51a7901de870c540004096ca9777df0f1.tar.gz |
Avoid a crash in FcPatternHash with ranges
When a cached pattern contains a range,
FcPatternHash will crash.
Fixes #254.
Diffstat (limited to 'src')
-rw-r--r-- | src/fcpat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fcpat.c b/src/fcpat.c index 2b1a808..5927be4 100644 --- a/src/fcpat.c +++ b/src/fcpat.c @@ -338,7 +338,7 @@ FcValueHash (const FcValue *v) case FcTypeLangSet: return FcLangSetHash (FcValueLangSet(v)); case FcTypeRange: - return FcRangeHash (v->u.r); + return FcRangeHash (FcValueRange (v)); } return 0; } |