1. 25 Mar, 2020 1 commit
    • Ondřej Surý's avatar
      Fix 'Dereference of null pointer' from scan-build-10 · 0ff5c1f1
      Ondřej Surý authored
      These are mostly false positives, the clang-analyzer FAQ[1] specifies
      why and how to fix it:
      
      > The reason the analyzer often thinks that a pointer can be null is
      > because the preceding code checked compared it against null. So if you
      > are absolutely sure that it cannot be null, remove the preceding check
      > and, preferably, add an assertion as well.
      
      The 2 warnings reported are:
      
      byname_test.c:308:34: warning: Access to field 'fwdtable' results in a dereference of a null pointer (loaded from variable 'view')
                      RUNTIME_CHECK(dns_fwdtable_add(view->fwdtable, dns_rootname,
                                                     ^~~~~~~~~~~~~~
      /builds/isc-projects/bind9/lib/isc/include/isc/util.h:318:52: note: expanded from macro 'RUNTIME_CHECK'
                                                         ^~~~
      /builds/isc-projects/bind9/lib/isc/include/isc/error.h:50:21: note: expanded from macro 'ISC_ERROR_RUNTIMECHECK'
              ((void)(ISC_LIKELY(cond) ||  \
                                 ^~~~
      /builds/isc-projects/bind9/lib/isc/include/isc/likely.h:23:43: note: expanded from macro 'ISC_LIKELY'
                                                  ^
      1 warning generated.
      
      --
      
      ./rndc.c:255:6: warning: Dereference of null pointer (loaded from variable 'host')
              if (*host == '/') {
                  ^~~~~
      1 warning generated.
      
      References:
      1. https://clang-analyzer.llvm.org/faq.html#null_pointer
      
      (cherry picked from commit ddd0d356)
      (cherry picked from commit 9b76eea0)
      0ff5c1f1
  2. 23 Oct, 2018 2 commits
  3. 08 Aug, 2018 1 commit
  4. 16 May, 2018 1 commit
    • Ondřej Surý's avatar
      Replace all random functions with isc_random, isc_random_buf and isc_random_uniform API. · 3a4f820d
      Ondřej Surý authored
      The three functions has been modeled after the arc4random family of
      functions, and they will always return random bytes.
      
      The isc_random family of functions internally use these CSPRNG (if available):
      
      1. getrandom() libc call (might be available on Linux and Solaris)
      2. SYS_getrandom syscall (might be available on Linux, detected at runtime)
      3. arc4random(), arc4random_buf() and arc4random_uniform() (available on BSDs and Mac OS X)
      4. crypto library function:
      4a. RAND_bytes in case OpenSSL
      4b. pkcs_C_GenerateRandom() in case PKCS#11 library
      3a4f820d
  5. 11 May, 2018 1 commit
  6. 06 Apr, 2018 3 commits
  7. 04 Apr, 2018 1 commit
  8. 09 Mar, 2018 1 commit
  9. 23 Feb, 2018 1 commit
  10. 11 Jul, 2017 1 commit
  11. 31 Dec, 2016 1 commit
  12. 27 Jun, 2016 1 commit
  13. 23 May, 2015 1 commit
  14. 28 Apr, 2012 1 commit
  15. 27 Apr, 2012 1 commit
    • Evan Hunt's avatar
      create and use multiple fetch dispatches · 4e8fe357
      Evan Hunt authored
      Added API to create a set of UDP dispatches which can be shared
      round-robin style when making upstream queries for authoritative
      data; this should reduce lock contention in the query source
      dispatch.
      4e8fe357
  16. 02 Sep, 2009 1 commit
  17. 01 Sep, 2009 1 commit
  18. 19 Jun, 2007 1 commit
  19. 18 Jun, 2007 1 commit
  20. 23 Jun, 2005 1 commit
  21. 29 Apr, 2005 1 commit
  22. 27 Apr, 2005 1 commit
  23. 05 Mar, 2004 1 commit
  24. 09 Jan, 2001 1 commit
  25. 10 Nov, 2000 1 commit
  26. 15 Sep, 2000 1 commit
  27. 09 Aug, 2000 1 commit
  28. 01 Aug, 2000 1 commit
  29. 27 Jul, 2000 1 commit
  30. 28 Jun, 2000 1 commit
  31. 22 Jun, 2000 1 commit
  32. 13 Jun, 2000 1 commit
  33. 06 Jun, 2000 1 commit
  34. 31 May, 2000 2 commits
  35. 30 May, 2000 1 commit
  36. 10 May, 2000 1 commit