1. 16 Apr, 2018 1 commit
    • Tom Anderson's avatar
      Fix undefined-shift UBSAN errors · c60ed9ef
      Tom Anderson authored
      The expression "1 << 31" will cause UBSAN to complain with this error message:
      runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
      
      The same operation on unsigned types is fine, however.  This CL replaces the
      strings "1 <<" with "1U <<".
      c60ed9ef
  2. 14 Sep, 2017 1 commit
  3. 23 Aug, 2017 2 commits
  4. 22 Aug, 2017 1 commit
  5. 02 Aug, 2017 4 commits
  6. 09 Jun, 2017 1 commit
    • Florent Rougon's avatar
      fc-lang: gracefully handle the case where the last language initial is < 'z' · 02161ef2
      Florent Rougon authored
      FcLangSetIndex() contains code like this:
      
        low = fcLangCharSetRanges[firstChar - 'a'].begin;
        high = fcLangCharSetRanges[firstChar - 'a'].end;
        /* no matches */
        if (low > high)
      
      The assumption behind this test didn't hold before this commit, unless
      there is at least one language name that starts with 'z' (which is
      thankfully the case in our world :-). If the last language name in
      lexicographic order starts for instance with 'x', this change ensures
      that fcLangCharSetRanges['y' - 'a'].begin and
           fcLangCharSetRanges['z' - 'a'].begin
      are equal to NUM_LANG_CHAR_SET, in order to make the above assumption
      correct in all cases.
      02161ef2
  7. 12 Jun, 2014 1 commit
  8. 22 Apr, 2014 1 commit
  9. 18 Mar, 2014 1 commit
  10. 17 Jan, 2014 1 commit
  11. 05 Nov, 2013 1 commit
    • 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
  12. 29 Aug, 2013 1 commit
  13. 27 Aug, 2013 1 commit
  14. 03 Jan, 2013 1 commit
  15. 02 Jan, 2013 2 commits
    • Behdad Esfahbod's avatar
      Use CC_FOR_BUILD to generate source files · 558b3c65
      Behdad Esfahbod authored
      Previously we were failing if CROSS_COMPILING and the generated headers
      were not present.  It works just fine now.
      
      One caveat: the fix is not fully correct since config.h is being
      included in the files built with CC_FOR_BUILD, but config.h has config
      for the host system, not the build system.  Should be fine though.
      558b3c65
    • Behdad Esfahbod's avatar
      Switch .gitignore to git.mk · ed41b237
      Behdad Esfahbod authored
      ed41b237
  16. 31 Dec, 2012 1 commit
  17. 30 Nov, 2012 1 commit
  18. 29 Nov, 2012 1 commit
  19. 25 Aug, 2012 1 commit
  20. 08 Jun, 2012 1 commit
  21. 30 Mar, 2012 1 commit
  22. 16 Mar, 2012 2 commits
  23. 10 Mar, 2012 2 commits
  24. 09 Mar, 2012 1 commit
  25. 24 Feb, 2012 2 commits
  26. 23 Feb, 2012 3 commits
  27. 21 Feb, 2012 4 commits