- 25 Mar, 2020 1 commit
-
-
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 4 warnings reported are: dnssec-cds.c:781:4: warning: Access to field 'base' results in a dereference of a null pointer (loaded from variable 'buf') isc_buffer_availableregion(buf, &r); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builds/isc-projects/bind9/lib/isc/include/isc/buffer.h:996:36: note: expanded from macro 'isc_buffer_availableregion' ^ /builds/isc-projects/bind9/lib/isc/include/isc/buffer.h:821:16: note: expanded from macro 'ISC__BUFFER_AVAILABLEREGION' (_r)->base = isc_buffer_used(_b); \ ^~~~~~~~~~~~~~~~~~~ /builds/isc-projects/bind9/lib/isc/include/isc/buffer.h:152:29: note: expanded from macro 'isc_buffer_used' ((void *)((unsigned char *)(b)->base + (b)->used)) /*d*/ ^~~~~~~~~ 1 warning generated. -- 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. -- ./main.c:1254:9: warning: Access to field 'sctx' results in a dereference of a null pointer (loaded from variable 'named_g_server') sctx = named_g_server->sctx; ^~~~~~~~~~~~~~~~~~~~ 1 warning generated. References: 1. https://clang-analyzer.llvm.org/faq.html#null_pointer
-
- 18 Mar, 2020 1 commit
-
-
Mark Andrews authored
The isc_mem API now crashes on memory allocation failure, and this is the next commit in series to cleanup the code that could fail before, but cannot fail now, e.g. isc_result_t return type has been changed to void for the isc_log API functions that could only return ISC_R_SUCCESS.
-
- 14 Feb, 2020 1 commit
-
-
Ondřej Surý authored
-
- 13 Feb, 2020 2 commits
-
-
Evan Hunt authored
-
Ondřej Surý authored
The command used to reformat the files in this commit was: ./util/run-clang-tidy \ -clang-tidy-binary clang-tidy-11 -clang-apply-replacements-binary clang-apply-replacements-11 \ -checks=-*,readability-braces-around-statements \ -j 9 \ -fix \ -format \ -style=file \ -quiet clang-format -i --style=format $(git ls-files '*.c' '*.h') uncrustify -c .uncrustify.cfg --replace --no-backup $(git ls-files '*.c' '*.h') clang-format -i --style=format $(git ls-files '*.c' '*.h')
-
- 12 Feb, 2020 1 commit
-
-
Ondřej Surý authored
-
- 07 Nov, 2019 1 commit
-
-
Evan Hunt authored
When a task manager is created, we can now specify an `isc_nm` object to associate with it; thereafter when the task manager is placed into exclusive mode, the network manager will be paused.
-
- 12 Sep, 2019 1 commit
-
-
Ondřej Surý authored
-
- 08 Mar, 2019 1 commit
-
-
Ondřej Surý authored
-
- 23 Oct, 2018 2 commits
-
-
Mark Andrews authored
-
Witold Krecicki authored
-
- 08 Aug, 2018 1 commit
-
-
Ondřej Surý authored
-
- 16 May, 2018 1 commit
-
-
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
-
- 11 May, 2018 1 commit
-
-
Ondřej Surý authored
-
- 06 Apr, 2018 3 commits
-
-
Witold Krecicki authored
libdns refactoring: get rid of multiple versions of dns_dt_create, dns_view_setcache, dns_zt_apply, dns_message_logfmtpacket, dns_message_logpacket, dns_ssutable_checkrules and dns_ttl_totext
-
Witold Krecicki authored
-
Witold Krecicki authored
-
- 04 Apr, 2018 1 commit
-
-
Ondřej Surý authored
-
- 09 Mar, 2018 1 commit
-
-
Evan Hunt authored
- some of these tests are obsolete and should be cleared up, others overlap with ATF tests and may be removed later. for now, let's just tidy up the bin/tests directory by moving these files down a level.
-
- 23 Feb, 2018 1 commit
-
-
Ondřej Surý authored
-
- 11 Jul, 2017 1 commit
-
-
Tinderbox User authored
-
- 31 Dec, 2016 1 commit
-
-
Mark Andrews authored
-
- 27 Jun, 2016 1 commit
-
-
Mark Andrews authored
-
- 23 May, 2015 1 commit
-
-
Francis Dupont authored
-
- 28 Apr, 2012 1 commit
-
-
Tinderbox User authored
-
- 27 Apr, 2012 1 commit
-
-
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.
-
- 02 Sep, 2009 1 commit
-
-
Automatic Updater authored
-
- 01 Sep, 2009 1 commit
-
-
Tatuya JINMEI 神明達哉 authored
applications. See README.libdns. [RT #19369]
-
- 19 Jun, 2007 1 commit
-
-
Automatic Updater authored
-
- 18 Jun, 2007 1 commit
-
-
Automatic Updater authored
-
- 23 Jun, 2005 1 commit
-
-
Mark Andrews authored
-
- 29 Apr, 2005 1 commit
-
-
Mark Andrews authored
-
- 27 Apr, 2005 1 commit
-
-
Rob Austein authored
-
- 05 Mar, 2004 1 commit
-
-
Mark Andrews authored
-
- 09 Jan, 2001 1 commit
-
-
Brian Wellington authored
-
- 10 Nov, 2000 1 commit
-
-
Brian Wellington authored
-
- 15 Sep, 2000 1 commit
-
-
Brian Wellington authored
but also don't appear to work on the release branch.
-
- 09 Aug, 2000 1 commit
-
-
Andreas Gustafsson authored
-
- 01 Aug, 2000 1 commit
-
-
David Lawrence authored
own CVS tree will help minimize CVS conflicts. Maybe not. Blame Graff for getting me to trim all trailing whitespace.
-
- 27 Jul, 2000 1 commit
-
-
David Lawrence authored
-