1. 30 Apr, 2018 1 commit
  2. 21 Mar, 2018 1 commit
  3. 07 Mar, 2018 1 commit
  4. 23 Jan, 2018 1 commit
  5. 05 Jan, 2018 1 commit
  6. 24 Dec, 2017 1 commit
  7. 22 Oct, 2017 1 commit
  8. 10 Sep, 2017 1 commit
  9. 08 Sep, 2017 2 commits
  10. 27 Jul, 2017 1 commit
  11. 18 Jul, 2017 1 commit
  12. 14 Jun, 2017 1 commit
  13. 12 Jun, 2017 1 commit
  14. 11 Apr, 2017 1 commit
  15. 10 Apr, 2017 1 commit
  16. 30 Mar, 2017 1 commit
  17. 08 Mar, 2017 2 commits
  18. 26 Feb, 2017 1 commit
  19. 24 Jan, 2017 1 commit
  20. 17 Jan, 2017 1 commit
  21. 12 Jan, 2017 1 commit
  22. 02 Jan, 2017 1 commit
  23. 01 Jan, 2017 1 commit
  24. 31 Dec, 2016 2 commits
  25. 28 Dec, 2016 1 commit
  26. 24 Dec, 2016 1 commit
  27. 23 Dec, 2016 2 commits
  28. 22 Dec, 2016 1 commit
  29. 21 Dec, 2016 1 commit
  30. 20 Dec, 2016 1 commit
  31. 12 Dec, 2016 1 commit
  32. 10 Dec, 2016 3 commits
  33. 08 Dec, 2016 1 commit
    • Wan-Teh Chang's avatar
      avutil: fix data race in av_get_cpu_flags() · 2170017a
      Wan-Teh Chang authored
      Make the one-time initialization in av_get_cpu_flags() thread-safe. The
      static variables |flags|, |cpuflags_mask|, and |checked| in
      libavutil/cpu.c are read and written using normal load and store
      operations. These are considered as data races. The fix is to use atomic
      load and store operations.
      
      Remove the |checked| variable because the invalid value of -1 for
      |flags| can be used to indicate the same condition. Rename |flags| to
      |cpu_flags| and move it to file scope.
      
      The fix can be verified by running the libavutil/tests/cpu_init.c test
      program under ThreadSanitizer:
          ./configure --toolchain=clang-tsan
          make libavutil/tests/cpu_init
          libavutil/tests/cpu_init
      
      There should be no warnings from ThreadSanitizer.
      
      Co-author: Dmitry Vyukov of Google, who suggested the data race fix.
      Signed-off-by: 's avatarWan-Teh Chang <wtc@google.com>
      2170017a
  34. 24 Nov, 2016 1 commit