bind9/lib/isc
Michał Kępień e1f0aed034 Fix isc_buffer_copyregion() for auto-reallocated buffers
While isc_buffer_copyregion() calls isc_buffer_reserve() to ensure the
target buffer will have enough available space to append the contents of
the source region to it, the variables used for subsequently checking
available space are not updated accordingly after that call.  This
prevents isc_buffer_copyregion() from working as expected for
auto-reallocated buffers: ISC_R_NOSPACE will be returned if enough space
is not already available in the target buffer before it is reallocated.
Fix by calling isc_buffer_used() and isc_buffer_availablelength()
directly instead of assigning their return values to local variables.
2018-10-30 13:33:25 +01:00
..
include document eol 2018-10-30 11:03:02 +11:00
nls address win32 build issues 2018-05-22 16:32:21 -07:00
pthreads Remove NEED_PTHREAD_SCOPE_SYSTEM define that was needed on older FreeBSDs 2018-09-07 12:17:40 +02:00
tests Add unit tests for isc_buffer_copyregion() 2018-10-30 13:33:25 +01:00
unix Only set IPV6_USE_MIN_MTU on IPv6. 2018-10-29 16:49:33 +11:00
win32 Add md.h and md.c to Windows build files 2018-10-25 20:59:48 +02:00
.gitignore [master] update gitignore files; use rev-parse to get srcid 2014-06-17 13:49:30 -07:00
aes.c Replace "config.h" with <config.h> 2018-08-16 12:45:59 +02:00
api prep 9.13.3 2018-09-04 06:11:38 +00:00
assertions.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
Atffile 3131. [func] Improve scalability by allocating one zone task 2011-07-06 05:05:52 +00:00
backtrace-emptytbl.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
backtrace.c Define platform.h ISC_PLATFORM_USEBACKTRACE with config.h USE_BACKTRACE 2018-09-07 12:17:29 +02:00
base32.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
base64.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
bind9.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
buffer.c Fix isc_buffer_copyregion() for auto-reallocated buffers 2018-10-30 13:33:25 +01:00
bufferlist.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
commandline.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
counter.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
crc64.c Replace "config.h" with <config.h> 2018-08-16 12:45:59 +02:00
entropy.c Make OpenSSL mandatory 2018-07-19 12:47:03 -04:00
entropy_private.h Replace custom isc_u?intNN_t types with C99 u?intNN_t types 2018-08-08 09:37:28 +02:00
error.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
event.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
fsaccess.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
hash.c Whitespace fixes 2018-08-23 11:39:01 +02:00
heap.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
hex.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
hmac.c Add generic hashed message authentication code API (isc_hmac) to replace specific HMAC functions hmacmd5/hmacsha1/hmacsha2... 2018-10-25 08:15:42 +02:00
ht.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
httpd.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
iterated_hash.c Add generic message digest API (isc_md) to replace specific MD functions md5/sha1/sha256 2018-10-25 08:15:42 +02:00
Kyuafile regen master 2017-12-29 01:44:18 +00:00
lex.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
lfsr.c Replace custom isc_u?intNN_t types with C99 u?intNN_t types 2018-08-08 09:37:28 +02:00
lib.c Add generic message digest API (isc_md) to replace specific MD functions md5/sha1/sha256 2018-10-25 08:15:42 +02:00
log.c Remove legacy support for AIX 2018-08-28 10:31:47 +02:00
Makefile.in Add generic hashed message authentication code API (isc_hmac) to replace specific HMAC functions hmacmd5/hmacsha1/hmacsha2... 2018-10-25 08:15:42 +02:00
md.c Add generic message digest API (isc_md) to replace specific MD functions md5/sha1/sha256 2018-10-25 08:15:42 +02:00
mem.c address unresolved externals 2018-10-19 00:49:53 -07:00
mem_p.h retain a minimal "methods" struct in the mctx 2018-10-18 09:19:12 +00:00
mutexblock.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
netaddr.c Remove support for legacy systems without sin6_scope_id 2018-08-28 10:31:48 +02:00
netscope.c Replace platform.h ISC_PLATFORM_HAVEIFNAMETOINDEX with config HAVE_IF_NAMETOINDEX 2018-09-07 12:17:30 +02:00
nonce.c Uninline isc_nonce_buf 2018-05-30 22:43:39 +02:00
openssl_shim.c Check for individual OpenSSL functions instead of relying on version number 2018-10-26 06:15:51 +02:00
openssl_shim.h Check for individual OpenSSL functions instead of relying on version number 2018-10-26 06:15:51 +02:00
parseint.c memmove, strtoul, and strcasestr functions are part of ISO C90, remove the compatibility shim 2018-08-28 10:31:48 +02:00
pk11.c Remove last bits of PKCS#11 DH support that has been already removed 2018-10-26 11:50:11 +02:00
pk11_result.c Make OpenSSL mandatory 2018-07-19 12:47:03 -04:00
pool.c expand the pool then copy over the old entries so we that failures do not break the old pool; also don't leak the new pool on error 2018-10-24 22:00:08 -04:00
portset.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
quota.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
radix.c Refactor *_destroy and *_detach functions to unified order of actions. 2018-08-28 13:15:59 +02:00
random.c Include threads.h for thread_local 2018-08-27 16:41:43 +02:00
ratelimiter.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
regex.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
region.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
result.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
rwlock.c Fix typo in isc_rwlock_pause() on sparc 2018-10-23 09:29:03 +02:00
serial.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
sockaddr.c Ignore sockaddr_{sin,sin6,sun}.{sin,sin6,sun}_len even on systems that define it 2018-08-28 10:31:48 +02:00
stats.c Remove isc_atomic usage from rwlock.c and stats.c 2018-08-28 12:15:39 +02:00
string.c <isc/string.h> instead of "isc/string.h" 2018-09-07 15:26:50 -07:00
symtab.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
task.c Remove layering from isc_task, isc_app, isc_socket, isc_timer, isc_mem 2018-10-18 09:19:12 +00:00
task_p.h complete removal of a few unneeded functions 2018-10-18 09:19:12 +00:00
taskpool.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
timer.c Remove layering from isc_task, isc_app, isc_socket, isc_timer, isc_mem 2018-10-18 09:19:12 +00:00
timer_p.h Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
tm.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
version.c address win32 build issues 2018-05-22 16:32:21 -07:00
xoshiro128starstar.c Include threads.h for thread_local 2018-08-27 16:41:43 +02:00