1. 08 Jan, 2016 1 commit
  2. 09 Nov, 2015 1 commit
  3. 05 Nov, 2015 1 commit
  4. 03 Nov, 2015 1 commit
    • Peter Hutterer's avatar
      symbols: increase the warning level for shortening a key type · 26d1c57a
      Peter Hutterer authored
      
      
      Any use of the german keyboard layout or anything else using
      level3(ralt_switch) produces the warning
          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
          Ignoring extra symbols
      This warning is meaningless, the default definition for RALT comes from
      pc(pc105) including altwin(meta_alt) which defines it as TWO_LEVEL
      and { Alt_R, Meta_R }. Including level3(ralt_switch) correctly sets it as
      ONE_LEVEL but now we get the warning. That makes users file bug reports and we
      can't be having that, can we?
      
      Up the warning level for this case to one past the default. The warning is
      only useful when you're testing a new keyboard layout or trying to fix an
      actual bug with missing symbols. And then you can run xkbcomp with -w10.
      No need to spam the log on every server startup.
      
      Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
      Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
      26d1c57a
  5. 29 Jul, 2015 1 commit
  6. 09 Apr, 2015 1 commit
  7. 04 Mar, 2015 1 commit
  8. 20 Nov, 2014 1 commit
  9. 30 Oct, 2014 1 commit
  10. 11 Mar, 2014 4 commits
  11. 04 Feb, 2014 1 commit
  12. 02 Nov, 2013 4 commits
  13. 28 Aug, 2013 2 commits
  14. 18 Jul, 2013 2 commits
  15. 13 Jul, 2013 1 commit
  16. 03 Jun, 2013 1 commit
  17. 21 May, 2013 1 commit
  18. 09 Apr, 2013 1 commit
  19. 23 Jan, 2013 1 commit
  20. 16 Jan, 2013 2 commits
  21. 05 Jan, 2013 1 commit
  22. 05 Nov, 2012 1 commit
  23. 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
  24. 31 Oct, 2012 1 commit
  25. 23 Mar, 2012 1 commit
  26. 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
  27. 06 Dec, 2011 1 commit
  28. 11 Nov, 2011 3 commits