Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 35) sorted by relevance

12

/openssh-portable/openbsd-compat/
H A Dbsd-malloc.c27 rpl_malloc(size_t size) in rpl_malloc() argument
29 if (size == 0) in rpl_malloc()
30 size = 1; in rpl_malloc()
31 return malloc(size); in rpl_malloc()
41 if (size == 0) in rpl_calloc()
42 size = 1; in rpl_calloc()
43 return calloc(nmemb, size); in rpl_calloc()
51 if (size == 0) in rpl_realloc()
52 size = 1; in rpl_realloc()
54 return malloc(size); in rpl_realloc()
[all …]
H A Drecallocarray.c38 recallocarray(void *ptr, size_t oldnmemb, size_t newnmemb, size_t size) in recallocarray() argument
44 return calloc(newnmemb, size); in recallocarray()
46 if ((newnmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && in recallocarray()
47 newnmemb > 0 && SIZE_MAX / newnmemb < size) { in recallocarray()
51 newsize = newnmemb * size; in recallocarray()
53 if ((oldnmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && in recallocarray()
54 oldnmemb > 0 && SIZE_MAX / oldnmemb < size) { in recallocarray()
58 oldsize = oldnmemb * size; in recallocarray()
H A Dinet_ntop.c48 static const char *inet_ntop4(const u_char *src, char *dst, size_t size);
60 inet_ntop(int af, const void *src, char *dst, socklen_t size) in inet_ntop() argument
64 return (inet_ntop4(src, dst, (size_t)size)); in inet_ntop()
66 return (inet_ntop6(src, dst, (size_t)size)); in inet_ntop()
86 inet_ntop4(const u_char *src, char *dst, size_t size) in inet_ntop4() argument
92 l = snprintf(tmp, size, fmt, src[0], src[1], src[2], src[3]); in inet_ntop4()
93 if (l <= 0 || l >= size) { in inet_ntop4()
97 strlcpy(dst, tmp, size); in inet_ntop4()
108 inet_ntop6(const u_char *src, char *dst, size_t size) in inet_ntop6() argument
203 if ((size_t)(tp - tmp) > size) { in inet_ntop6()
[all …]
H A Dreallocarray.c37 reallocarray(void *optr, size_t nmemb, size_t size) in reallocarray() argument
39 if ((nmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && in reallocarray()
40 nmemb > 0 && SIZE_MAX / nmemb < size) { in reallocarray()
44 return realloc(optr, size * nmemb); in reallocarray()
H A Dgetrrsetbyname.c160 u_int16_t size; member
325 rdata->rdi_length = rr->size; in getrrsetbyname()
326 rdata->rdi_data = malloc(rr->size); in getrrsetbyname()
332 memcpy(rdata->rdi_data, rr->rdata, rr->size); in getrrsetbyname()
383 parse_dns_response(const u_char *answer, int size) in parse_dns_response() argument
413 resp->query = parse_dns_qsection(answer, size, &cp, in parse_dns_response()
421 resp->answer = parse_dns_rrsection(answer, size, &cp, in parse_dns_response()
541 curr->size = _getshort(*cp); in parse_dns_rrsection()
545 curr->rdata = malloc(curr->size); in parse_dns_rrsection()
550 memcpy(curr->rdata, *cp, curr->size); in parse_dns_rrsection()
[all …]
H A Dgetcwd.c52 getcwd(char *pt, size_t size) in getcwd() argument
74 if (!size) { in getcwd()
78 ept = pt + size; in getcwd()
H A Dopenbsd-compat.h77 char *getcwd(char *pt, size_t size);
157 const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
/openssh-portable/
H A Dxmalloc.c34 xmalloc(size_t size) in xmalloc() argument
38 if (size == 0) in xmalloc()
40 ptr = malloc(size); in xmalloc()
47 xcalloc(size_t nmemb, size_t size) in xcalloc() argument
51 if (size == 0 || nmemb == 0) in xcalloc()
53 if (SIZE_MAX / nmemb < size) in xcalloc()
55 ptr = calloc(nmemb, size); in xcalloc()
58 size * nmemb); in xcalloc()
67 new_ptr = reallocarray(ptr, nmemb, size); in xreallocarray()
70 nmemb, size); in xreallocarray()
[all …]
H A Dsshbuf.c41 buf->size > buf->alloc || in sshbuf_check_sanity()
42 buf->off > buf->size)) { in sshbuf_check_sanity()
62 buf->size -= buf->off; in sshbuf_maybe_pack()
177 buf->off = buf->size; in sshbuf_reset()
181 buf->off = buf->size = 0; in sshbuf_reset()
259 return buf->size - buf->off; in sshbuf_len()
358 dp = buf->d + buf->size; in sshbuf_reserve()
359 buf->size += len; in sshbuf_reserve()
379 if (buf->off == buf->size) in sshbuf_consume()
380 buf->off = buf->size = 0; in sshbuf_consume()
[all …]
H A Ddh.c110 (dhg->size = (int)strtonum(strsize, 0, 64*1024, &errstr)) == 0 || in parse_prime()
116 dhg->size++; in parse_prime()
140 if (BN_num_bits(dhg->p) != dhg->size) { in parse_prime()
142 linenum, BN_num_bits(dhg->p), dhg->size - 1); in parse_prime()
182 if (dhg.size > max || dhg.size < min) in choose_dh()
185 if ((dhg.size > wantbits && dhg.size < best) || in choose_dh()
186 (dhg.size > best && best < wantbits)) { in choose_dh()
187 best = dhg.size; in choose_dh()
190 if (dhg.size == best) in choose_dh()
212 if ((dhg.size > max || dhg.size < min) || in choose_dh()
[all …]
H A Dsftp-common.c58 a->size = 0; in attrib_clear()
73 a->size = st->st_size; in stat_to_attrib()
91 st->st_size = a->size; in attrib_to_stat()
114 if ((r = sshbuf_get_u64(b, &a->size)) != 0) in decode_attrib()
162 if ((r = sshbuf_put_u64(b, a->size)) != 0) in encode_attrib()
H A Dprogressmeter.c88 format_rate(char *buf, int size, off_t bytes) in format_rate() argument
99 snprintf(buf, size, "%3lld.%1lld%c%s", in format_rate()
107 format_size(char *buf, int size, off_t bytes) in format_size() argument
113 snprintf(buf, size, "%4lld%c%s", in format_size()
H A Dscp.c1246 off_t size, statbytes; local
1381 size = (off_t)ull;
1467 if (i + amt > size)
1468 amt = size - i;
1504 ftruncate(ofd, size) != 0)
1708 size_t size; local
1717 if (size == 0)
1718 size = blksize;
1720 size = blksize;
1722 if (bp->cnt >= size)
[all …]
H A Dsftp-common.h37 u_int64_t size; member
H A Ddh.h32 int size; member
H A Dsftp-client.c965 (unsigned long)a.size); in do_realpath()
1292 u_int64_t offset = 0, size, highwater; in do_download() local
1325 size = a->size; in do_download()
1327 size = 0; in do_download()
1371 if ((u_int64_t)st.st_size > size) { in do_download()
1390 if (showprogress && size != 0) in do_download()
1495 if (size > 0 && offset > size) { in do_download()
1513 if (showprogress && size) in do_download()
1755 if ((off_t)c->size >= sb.st_size) { in do_upload()
1762 if (lseek(local_fd, (off_t)c->size, SEEK_SET) == -1) { in do_upload()
[all …]
H A DPROTOCOL185 uint32 initial window size
186 uint32 maximum packet size
247 uint32 initial window size
248 uint32 maximum packet size
260 uint32 initial window size
261 uint32 maximum packet size
419 uint64 f_bsize /* file system block size */
420 uint64 f_frsize /* fundamental fs block size */
506 Even if the client requests a larger size, servers will usually respond
H A Dsshbuf.h44 size_t size; /* Last byte is buf->d + buf->size - 1 */ member
396 buf->size, buf->alloc, buf->off, buf->max_size); \
/openssh-portable/regress/misc/fuzz-harness/
H A Dsshsigopt_fuzz.cc11 int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
13 char *cp = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
18 memcpy(cp, data, size); in LLVMFuzzerTestOneInput()
19 cp[size] = '\0'; in LLVMFuzzerTestOneInput()
H A Dauthopt_fuzz.cc11 int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
13 char *cp = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
18 memcpy(cp, data, size); in LLVMFuzzerTestOneInput()
19 cp[size] = '\0'; in LLVMFuzzerTestOneInput()
H A Dpubkey_fuzz.cc9 int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
12 int r = sshkey_from_blob(data, size, &k); in LLVMFuzzerTestOneInput()
H A Dprivkey_fuzz.cc10 int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
13 struct sshbuf *b = sshbuf_from(data, size); in LLVMFuzzerTestOneInput()
H A Dkex_fuzz.cc418 int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
440 sshbuf_put(ts->s_template, data, size) != 0 || in LLVMFuzzerTestOneInput()
450 sshbuf_put(ts->c_template, data, size) != 0 || in LLVMFuzzerTestOneInput()
/openssh-portable/regress/
H A Drekey.sh140 for size in 16 1k 1K 1m 1M 1g 1G 4G 8G; do
142 case $size in
158 b=`$SUDO ${SSHD} -T -o "rekeylimit $size $time" -f $OBJ/sshd_proxy | \
160 s=`$SUDO ${SSHD} -T -o "rekeylimit $size $time" -f $OBJ/sshd_proxy | \
/openssh-portable/contrib/aix/
H A Dbuildbff.sh183 done > ../openssh.size
291 for i in openssh.al openssh.copyright openssh.inventory openssh.post_i openssh.size LICENCE README*
330 size=`du $FAKE_ROOT/$i | awk '{print $1}'`
331 echo "$i $size" >>../lpp_name

12