1. 20 Nov, 2014 1 commit
  2. 30 Oct, 2014 1 commit
  3. 11 Mar, 2014 4 commits
  4. 04 Feb, 2014 1 commit
  5. 02 Nov, 2013 4 commits
  6. 28 Aug, 2013 2 commits
  7. 18 Jul, 2013 2 commits
  8. 13 Jul, 2013 1 commit
  9. 03 Jun, 2013 1 commit
  10. 21 May, 2013 1 commit
  11. 09 Apr, 2013 1 commit
  12. 23 Jan, 2013 1 commit
  13. 16 Jan, 2013 2 commits
  14. 05 Jan, 2013 1 commit
  15. 05 Nov, 2012 1 commit
  16. 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
  17. 31 Oct, 2012 1 commit
  18. 23 Mar, 2012 1 commit
  19. 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
  20. 06 Dec, 2011 1 commit
  21. 11 Nov, 2011 6 commits
  22. 07 Jul, 2011 1 commit
  23. 22 Jun, 2011 1 commit
  24. 21 Jun, 2011 2 commits
    • Daniel Stone's avatar
      Bump to 1.2.3 · cef4ba4b
      Daniel Stone authored
      Signed-off-by: Daniel Stone's avatarDaniel Stone <daniel@fooishbar.org>
      cef4ba4b
    • Daniel Stone's avatar
      Interp: Allow explicit Any/NoSymbol mappings · 3caab5aa
      Daniel Stone authored
      Brown paper bag in full effect.
      
      The previous fix, while crushing the previous problem where an unknown
      keysym for an interp def would lead to every key matching it, also
      ignored explicit Any+AnyOfOrNone(All) mappings.
      
      Such as the one xkeyboard-config relied on for Control to actually
      update the modifier state.
      
      Fix this by allowing mappings explicitly declared as Any/NoSymbol, while
      ignoring only those with failed keysym lookups.  Unfortunately, due to
      the structure of the parser, it's a deeply inelegant fix.
      
      Verified with a quick check of all layouts (albeit using default
      variants only) in xkeyboard-config that this results in no changes to
      the output at all, compared to xkbcomp 1.1.1.
      Signed-off-by: Daniel Stone's avatarDaniel Stone <daniel@fooishbar.org>
      3caab5aa