bind9/lib/isc
Michał Kępień 00bc5bf6bd 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.

(cherry picked from commit e1f0aed034)
2018-10-30 13:34:49 +01:00
..
alpha Bail-out early in the for install loops instead of continuing because for masks the error in the middle 2018-09-03 13:49:35 +02:00
ia64 Bail-out early in the for install loops instead of continuing because for masks the error in the middle 2018-09-03 13:49:35 +02:00
include document eol 2018-10-30 11:18:06 +11:00
mips Bail-out early in the for install loops instead of continuing because for masks the error in the middle 2018-09-03 13:49:35 +02:00
nls Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
noatomic Bail-out early in the for install loops instead of continuing because for masks the error in the middle 2018-09-03 13:49:35 +02:00
nothreads Bail-out early in the for install loops instead of continuing because for masks the error in the middle 2018-09-03 13:49:35 +02:00
powerpc Bail-out early in the for install loops instead of continuing because for masks the error in the middle 2018-09-03 13:49:35 +02:00
pthreads Bail-out early in the for install loops instead of continuing because for masks the error in the middle 2018-09-03 13:49:35 +02:00
sparc64 Bail-out early in the for install loops instead of continuing because for masks the error in the middle 2018-09-03 13:49:35 +02:00
tests Add unit tests for isc_buffer_copyregion() 2018-10-30 13:34:48 +01:00
unix Only set IPV6_USE_MIN_MTU on IPv6. 2018-10-29 17:29:36 +11:00
win32 Bail-out early in the for install loops instead of continuing because for masks the error in the middle 2018-09-03 13:49:35 +02:00
x86_32 Bail-out early in the for install loops instead of continuing because for masks the error in the middle 2018-09-03 13:49:35 +02:00
x86_64 Bail-out early in the for install loops instead of continuing because for masks the error in the middle 2018-09-03 13:49:35 +02:00
.gitignore [master] update gitignore files; use rev-parse to get srcid 2014-06-17 13:49:30 -07:00
aes.c Fix missing config.h in win32/socket.c and replace config.h with <config.h> 2018-08-11 11:00:50 +02:00
api prep 9.11.5rc1 2018-09-29 03:57:26 +00:00
app_api.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
assertions.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +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 14:25:15 +02:00
backtrace.c Fix missing config.h in win32/socket.c and replace config.h with <config.h> 2018-08-11 11:00:50 +02:00
base32.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
base64.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
bind9.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
buffer.c Fix isc_buffer_copyregion() for auto-reallocated buffers 2018-10-30 13:34:49 +01:00
bufferlist.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
chacha_private.h silence compiler warnings 2014-06-10 12:38:32 +10:00
commandline.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
counter.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
crc64.c Replace custom isc_u?intNN_t types with C99 u?intNN_t types 2018-08-10 15:20:57 +02:00
entropy.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
error.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
event.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
fsaccess.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
hash.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
heap.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
hex.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
hmacmd5.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
hmacsha.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
ht.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
httpd.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
inet_aton.c Replace custom isc_u?intNN_t types with C99 u?intNN_t types 2018-08-10 15:20:57 +02:00
inet_ntop.c Replace custom isc_u?intNN_t types with C99 u?intNN_t types 2018-08-10 15:20:57 +02:00
inet_pton.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
iterated_hash.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
Kyuafile regen v9_11 2017-12-29 02:23:11 +00:00
lex.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
lfsr.c Replace custom isc_u?intNN_t types with C99 u?intNN_t types 2018-08-10 15:20:57 +02:00
lib.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
log.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
Makefile.in update file headers to remove copyright years 2018-03-14 16:40:20 -07:00
md5.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
mem.c mempool didn't work for sizes less than sizeof(void*) 2018-08-14 09:12:41 -07:00
mutexblock.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
netaddr.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
netscope.c Replace custom isc_u?intNN_t types with C99 u?intNN_t types 2018-08-10 15:20:57 +02:00
ondestroy.c update file headers to remove copyright years 2018-03-14 16:40:20 -07:00
parseint.c Replace custom isc_u?intNN_t types with C99 u?intNN_t types 2018-08-10 15:20:57 +02:00
pk11.c use sizeof(CK_SLOT_ID) 2018-08-24 11:33:12 +10:00
pk11_result.c update file headers to remove copyright years 2018-03-14 16:40:20 -07: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-25 13:20:14 +11:00
portset.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
print.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
quota.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
radix.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
random.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
ratelimiter.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
refcount.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
regex.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
region.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
result.c update file headers to remove copyright years 2018-03-14 16:40:20 -07:00
rwlock.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
safe.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
serial.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
sha1.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
sha2.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
sockaddr.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
socket_api.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
stats.c Use isc/stdatomic.h to switch to __atomic builtins when compiling in C++ mode 2018-09-07 16:55:22 +02:00
string.c Replace custom isc_u?intNN_t types with C99 u?intNN_t types 2018-08-10 15:20:57 +02:00
strtoul.c Remove duplicate config.h 2018-08-10 15:20:58 +02:00
symtab.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
task.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
task_p.h Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
taskpool.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
timer.c Fix crash caused by race condition in timer creation 2018-09-27 13:00:05 -07:00
timer_p.h update file headers to remove copyright years 2018-03-14 16:40:20 -07:00
tm.c update file headers to remove copyright years 2018-03-14 16:40:20 -07:00
version.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00