Fix FcCacheOffsetsValid() 86/154686/1
authorAkira TAGOH <akira@tagoh.org>
Mon, 14 Nov 2016 11:14:35 +0000 (20:14 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Wed, 11 Oct 2017 05:35:53 +0000 (14:35 +0900)
commitbc105e0678ecbd7cee304ab2b181dc62cac1575f
tree2bee9b0cb4527f1176506e4d7eb535c7b4a336b5
parent7539f568fddce539ff94bb1f3ee215b980b73c5b
Fix FcCacheOffsetsValid()

Validation fails when the FcValueList contains more than font->num.
this logic was wrong because font->num contains a number of the elements
in FcPatternElt but FcValue in FcValueList.

This corrects 7a4a5bd7.

Patch from Tobias Stoeckmann

Change-Id: I4d14746892a0426b7096810bf30128bf69829417
src/fccache.c