1. 09 Apr, 2015 1 commit
  2. 04 Mar, 2015 1 commit
  3. 20 Nov, 2014 1 commit
  4. 30 Oct, 2014 1 commit
  5. 11 Mar, 2014 4 commits
  6. 04 Feb, 2014 1 commit
  7. 02 Nov, 2013 4 commits
  8. 28 Aug, 2013 2 commits
  9. 18 Jul, 2013 2 commits
  10. 13 Jul, 2013 1 commit
  11. 03 Jun, 2013 1 commit
  12. 21 May, 2013 1 commit
  13. 09 Apr, 2013 1 commit
  14. 23 Jan, 2013 1 commit
  15. 16 Jan, 2013 2 commits
  16. 05 Jan, 2013 1 commit
  17. 05 Nov, 2012 1 commit
  18. 01 Nov, 2012 1 commit
    • Daniel Stone's avatar
      Reset scan state when opening a new file · a68c5b7b
      Daniel Stone authored
      When we opened a new file after encountering a parse error, we weren't
      resetting our scan state, and continued to read out of the old buffer
      rather than that of the new file.
      
      Fixes a regression introduced in 9887842e ('Use fread() instead of
      getc()').
      
      Test case:
          xkbcomp -lfhlpR "path/to/xkeyboard-config.git/symbols/*"
      The Makefiles in that tree would cause parse errors, the resulting directory
      file is incomplete (down from ~12000 to ~230 lines).
      Reported-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
      Signed-off-by: Daniel Stone's avatarDaniel Stone <daniel@fooishbar.org>
      a68c5b7b
  19. 31 Oct, 2012 1 commit
  20. 23 Mar, 2012 1 commit
  21. 29 Dec, 2011 2 commits
    • Alan Coopersmith's avatar
      Delete redundant redeclarations of extern Atoms in symbols.c · b4fafc4f
      Alan Coopersmith authored
      Fixes gcc warnings of:
      
      symbols.c:43: warning: redundant redeclaration of 'tok_ONE_LEVEL'
      tokens.h:99: warning: previous declaration of 'tok_ONE_LEVEL' was here
      symbols.c:44: warning: redundant redeclaration of 'tok_TWO_LEVEL'
      tokens.h:100: warning: previous declaration of 'tok_TWO_LEVEL' was here
      symbols.c:45: warning: redundant redeclaration of 'tok_KEYPAD'
      tokens.h:102: warning: previous declaration of 'tok_KEYPAD' was here
      Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      b4fafc4f
    • Alan Coopersmith's avatar
      Make sure to leave room for trailing nil byte in yyGetNumber · 3835cae3
      Alan Coopersmith authored
      ...though really, by the time you've added 1023 digits to the number
      you want to parse, you've got much bigger problems than an off-by-one
      error in your buffer count.
      
      Fixes parfait warnings:
         Buffer overflow (CWE 120): In array dereference of (*buf)[nInBuf] with index 'nInBuf'
            Array size is 1024 bytes, nInBuf >= 1 and nInBuf <= 1024
              at line 625 of xkbscan.c in function 'yyGetNumber'.
         Buffer overflow (CWE 120): In array dereference of (*buf)[nInBuf] with index 'nInBuf'
            Array size is 1024 bytes, nInBuf <= 1025
              at line 632 of xkbscan.c in function 'yyGetNumber'.
      
      [ This bug was found by the Parfait 0.4.2 bug checking tool.
        For more information see http://labs.oracle.com/projects/parfait/ ]
      Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      3835cae3
  22. 06 Dec, 2011 1 commit
  23. 11 Nov, 2011 6 commits
  24. 07 Jul, 2011 1 commit
  25. 22 Jun, 2011 1 commit