mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Merge branch '2053-test-disable-buffer-useinline-in-gitlab-ci' into 'main'
Resolve "Test --disable-buffer-useinline in GitLab CI" Closes #2053 See merge request isc-projects/bind9!3983
This commit is contained in:
commit
3f85b0fe3b
3 changed files with 7 additions and 3 deletions
|
|
@ -579,7 +579,7 @@ gcc:centos8:amd64:
|
|||
variables:
|
||||
CC: gcc
|
||||
CFLAGS: "${CFLAGS_COMMON}"
|
||||
EXTRA_CONFIGURE: "--with-libidn2"
|
||||
EXTRA_CONFIGURE: "--enable-buffer-useinline --with-libidn2"
|
||||
<<: *centos_centos8_amd64_image
|
||||
<<: *build_job
|
||||
|
||||
|
|
|
|||
|
|
@ -1777,7 +1777,8 @@ inet_totext(int af, uint32_t flags, isc_region_t *src, isc_buffer_t *target) {
|
|||
if (isc_buffer_availablelength(target) == 0) {
|
||||
return (ISC_R_NOSPACE);
|
||||
}
|
||||
isc_buffer_putmem(target, "0", 1);
|
||||
isc_buffer_putmem(target, (const unsigned char *)"0",
|
||||
1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -144,7 +144,10 @@ isc_sockaddr_totext(const isc_sockaddr_t *sockaddr, isc_buffer_t *target) {
|
|||
return (ISC_R_NOSPACE);
|
||||
}
|
||||
|
||||
isc_buffer_putmem(target, sockaddr->type.sunix.sun_path, plen);
|
||||
isc_buffer_putmem(
|
||||
target,
|
||||
(const unsigned char *)sockaddr->type.sunix.sun_path,
|
||||
plen);
|
||||
|
||||
/*
|
||||
* Null terminate after used region.
|
||||
|
|
|
|||
Loading…
Reference in a new issue