1. 24 Mar, 2014 2 commits
  2. 18 Mar, 2014 2 commits
  3. 07 Mar, 2014 1 commit
  4. 05 Mar, 2014 1 commit
  5. 06 Feb, 2014 3 commits
  6. 31 Jan, 2014 1 commit
  7. 22 Jan, 2014 1 commit
  8. 17 Jan, 2014 3 commits
  9. 16 Jan, 2014 1 commit
  10. 20 Dec, 2013 1 commit
  11. 16 Dec, 2013 2 commits
  12. 10 Dec, 2013 1 commit
    • Behdad Esfahbod's avatar
      Bug 72380 - Never drop first font when trimming · fee834a9
      Behdad Esfahbod authored
      Let me show it with an example.
      
      Currently:
      
      $ fc-match symbol
      symbol.ttf: "Symbol" "Regular"
      
      $ fc-match symbol --sort | head -n 1
      Symbol.pfb: "Symbol" "Regular"
      
      $ fc-match symbol --sort --all | head -n 1
      symbol.ttf: "Symbol" "Regular"
      
      I want to make sure the above three commands all return the same font.
      Ie.  I want to make sure FcFontMatch() always returns the first font
      from FcFontSort().  As such, never trim first font.
      fee834a9
  13. 09 Dec, 2013 3 commits
  14. 02 Dec, 2013 3 commits
  15. 28 Nov, 2013 1 commit
  16. 11 Nov, 2013 1 commit
    • Akira TAGOH's avatar
      Fix typo · 38acb08d
      Akira TAGOH authored
      Use FcTypeUnknown instead of -1 with type casting.
      This seems missed when it was changed.
      
      Patch from brian porter
      38acb08d
  17. 05 Nov, 2013 4 commits
    • Akira TAGOH's avatar
      Re-scan font directories only when it contains subdirs · a4443e64
      Akira TAGOH authored
      Somewhat improves the performance but still need to think about for the situation
      where both directories and fonts are in.
      a4443e64
    • Alan Coopersmith's avatar
      Avoid null pointer dereference in FcNameParse if malloc fails · 0b7f42f7
      Alan Coopersmith authored
      
      
      Reported by parfait 1.3:
      Error: Null pointer dereference (CWE 476)
         Read from null pointer t
              at line 423 of src/fcname.c in function 'FcNameParse'.
                Function _FcObjectLookupOtherTypeByName may return constant 'NULL'
                 at line 63, called at line 122 of src/fcobjs.c in function
                 'FcObjectLookupOtherTypeByName'.
                Function FcObjectLookupOtherTypeByName may return constant 'NULL'
                 at line 122, called at line 67 of src/fcname.c in function
                 'FcNameGetObjectType'.
                Function FcNameGetObjectType may return constant 'NULL' at line 67,
                 called at line 422 in function 'FcNameParse'.
                Null pointer introduced at line 63 of src/fcobjs.c in function
                 '_FcObjectLookupOtherTypeByName'.
      Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      0b7f42f7
    • Alan Coopersmith's avatar
      Avoid memory leak when NULL path passed to FcStrBuildFilename · 5b8380d5
      Alan Coopersmith authored
      
      
      Reported by parfait 1.3:
         Memory leak of pointer sset allocated with FcStrSetCreate()
              at line 933 of src/fcstr.c in function 'FcStrBuildFilename'.
                sset allocated at line 927 with FcStrSetCreate().
                sset leaks when sset != NULL at line 932.
      Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      5b8380d5
    • Alan Coopersmith's avatar
      Leave room for null terminators in arrays · cb72901d
      Alan Coopersmith authored
      
      
      Code currently returns a fatal error if it tries to add more entries
      than the array has room for, but it wasn't checking to make sure
      the final null terminator entry would fit.
      
      Reported by parfait 1.3:
      Error: Buffer overrun
         Buffer overflow (CWE 120): In array dereference of files[i] with index i
            Array size is 256 elements (of 4 bytes each), index >= 0 and index <= 256
              at line 250 of fc-glyphname/fc-glyphname.c in function 'main'.
      Error: Buffer overrun
         Buffer overflow (CWE 120): In array dereference of entries[i] with index i
            Array size is 1024 elements (of 8 bytes each), index >= 0 and index <= 1024
              at line 298 of fc-lang/fc-lang.c in function 'main'.
      Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      cb72901d
  18. 31 Oct, 2013 2 commits
  19. 28 Oct, 2013 1 commit
  20. 24 Oct, 2013 1 commit
  21. 22 Oct, 2013 1 commit
  22. 21 Oct, 2013 3 commits
  23. 11 Oct, 2013 1 commit