search for: max_len

Displaying 20 results from an estimated 56 matches for "max_len".

2019 Dec 04
2
Rootless wiki page is not up to date?
If I run a docker image with the mesos containerizer and altering the dovecot config mentioned here[1] I think the root detection is incorrect because it looks like dovecot is still thinking it is root. I still get errors like: >> log(829825): Fatal: We couldn't drop root group privileges (wanted=10053(dovecot), gid=0(root), egid=0(root)) Why does it want to drop to root, if we
2007 Jul 29
0
Asterisk 1.4.X support for Solaris 10?
...app_skel.so #0 0xfebd4d0c in strlen () from /usr/lib/libc.so.1 (gdb) bt #0 0xfebd4d0c in strlen () from /usr/lib/libc.so.1 #1 0xfec2a386 in _ndoprnt () from /usr/lib/libc.so.1 #2 0xfec2d4bb in vsnprintf () from /usr/lib/libc.so.1 #3 0x080e994a in ast_dynamic_str_thread_build_va (buf=0x817625b, max_len=0, ts=0x8149720, append=0, fmt=0x811eefd "%25.25s %s\n", ap=0x8046f18 "Pb\027\b") at utils.c:969 #4 0x08089ad8 in ast_cli (fd=1, fmt=0x811eefd "%25.25s %s\n") at cli.c:69 #5 0x0808d33e in help1 (fd=1, match=0x8047084, locked=1) at cli.c:1746 #6 0x0808d45f...
2020 Oct 17
1
[libnbd PATCH] info: Keep request within 4G bound
...static FILE *fp; static bool list_all = false; @@ -267,7 +269,7 @@ main (int argc, char *argv[]) fprintf (fp, "%" PRIi64 "\n", size); } else if (map) { /* --map (!list_all) */ - uint64_t offset, prev_offset; + uint64_t offset, prev_offset, align, max_len; /* Did we get the requested map? */ if (!nbd_can_meta_context (nbd, map)) { @@ -276,6 +278,8 @@ main (int argc, char *argv[]) progname, map); exit (EXIT_FAILURE); } + align = nbd_get_block_size (nbd, LIBNBD_SIZE_MINIMUM) ?: 512; + max_len = UINT32_MAX -...
2017 Dec 12
2
[PATCH] df: Handle block sizes smaller than 1024 bytes (RHBZ#1525241).
...>= to) { + uintmax_t multiplier = from / to; + return n * multiplier; + } + else { + uintmax_t divisor = to / from; + return n / divisor; + } +} + void print_stat (FILE *fp, const char *name, const char *uuid_param, @@ -95,7 +111,7 @@ print_stat (FILE *fp, #define MAX_LEN (LONGEST_HUMAN_READABLE > 128 ? LONGEST_HUMAN_READABLE : 128) char buf[4][MAX_LEN]; const char *cols[4]; - int64_t factor, v; + int64_t v; float percent; const int hopts = human_round_to_nearest|human_autoscale|human_base_1024|human_SI; @@ -109,15 +125,13 @@ print_stat (FILE *...
2020 Aug 19
0
/usr/include/dovecot/str.h
FYI, I am building on alpine 3.10 and 3.11 I am getting this build[1] error. I think these header files of dovecot are not correct. Or are they? I changed line 35 in /usr/include/dovecot/str.h from str_append_max(str, cstr, max_len); to str_append_max(str, (const char *)cstr, max_len); [1] /usr/include/dovecot/str.h: In function 'void str_append_n(string_t*, const void*, size_t)': /usr/include/dovecot/str.h:35:22: error: invalid conversion from 'const void*' to 'const char*' [-fpermissive] 35 |...
2007 Jun 09
1
ast_dynamic_str_thread_build_va() is defined with 6 args but only called with 5 args??
...e under Solaris 10 with a SIGSEGV error. gdb gives this stack trace: #0 0xfebd4d0c in strlen () from /usr/lib/libc.so.1 #1 0xfec2a386 in _ndoprnt () from /usr/lib/libc.so.1 #2 0xfec2d4bb in vsnprintf () from /usr/lib/libc.so.1 #3 0x080e86de in ast_dynamic_str_thread_build_va (buf=0x8172763, max_len=0, ts=0x81482a0, append=0, fmt=0x811dc6a "%25.25s %s\n", ap=0x8046f18 "X'\027\b") at utils.c:969 #4 0x080890e0 in ast_cli (fd=1, fmt=0x811dc6a "%25.25s %s\n") at cli.c:69 #5 0x0808c946 in help1 (fd=1, match=0x0, locked=0) at cli.c:1746 #6 0x0808ca67 in han...
2007 Dec 11
1
dovecot deliver errors
...: to=<example at example.com>, relay=dovecot, delay=20385, delays=20384/0.01/0/0.19, dsn=5.3.0, status=bounced (Command died with signal 11: "/usr/ lib/dovecot/deliver") Program received signal SIGSEGV, Segmentation fault. 0x080d017a in str_sanitize_append (dest=0x80ee2f8, src=0x0, max_len=80) at str-sanitize.c:11 11 str-sanitize.c: No such file or directory. in str-sanitize.c (gdb) #0 0x080d017a in str_sanitize_append (dest=0x80ee2f8, src=0x0, max_len=80) at str-sanitize.c:11 p = <value optimized out> #1 0x080d02ce in str_sanitize (src=0x0, max_l...
2017 Dec 01
1
[PATCH v18 07/10] virtio-balloon: VIRTIO_BALLOON_F_SG
...t; + * need to be searched. > + */ > +static void tell_host_sgs(struct virtio_balloon *vb, > + struct virtqueue *vq, > + unsigned long page_xb_start, > + unsigned long page_xb_end) > +{ > + unsigned long pfn_start, pfn_end; > + uint64_t addr; > + uint32_t len, max_len = round_down(UINT_MAX, PAGE_SIZE); > + > + pfn_start = page_xb_start; > + while (pfn_start < page_xb_end) { > + pfn_start = xb_find_next_set_bit(&vb->page_xb, pfn_start, > + page_xb_end); > + if (pfn_start == page_xb_end + 1) > + break; > + pfn_end = xb_...
2017 Dec 01
1
[PATCH v18 07/10] virtio-balloon: VIRTIO_BALLOON_F_SG
...t; + * need to be searched. > + */ > +static void tell_host_sgs(struct virtio_balloon *vb, > + struct virtqueue *vq, > + unsigned long page_xb_start, > + unsigned long page_xb_end) > +{ > + unsigned long pfn_start, pfn_end; > + uint64_t addr; > + uint32_t len, max_len = round_down(UINT_MAX, PAGE_SIZE); > + > + pfn_start = page_xb_start; > + while (pfn_start < page_xb_end) { > + pfn_start = xb_find_next_set_bit(&vb->page_xb, pfn_start, > + page_xb_end); > + if (pfn_start == page_xb_end + 1) > + break; > + pfn_end = xb_...
2014 Mar 13
0
Any Help ? user defined application .module load Crash Asterisk 11.5.1 app_confbridge.c
...=0xbf9175c0 "\374 -- \n======== inside count_exec == data is at address:[%p] data:[%s] ", '=' <repeats 11 times>, "\n", args=0xbf917724 "d\213\221\277\376\377\377\377\213\261\065\b") at vsnprintf.c:120 #3 0x081a0f94 in __ast_str_helper (buf=0xbf9176a8, max_len=0, append=0, fmt=0xbf9175c0 "\374 -- \n======== inside count_exec == data is at address: [%p] data:[%s] ", '=' <repeats 11 times>, "\n", ap=0xbf917724 "d\213\221\277\376\377\377\377\213\261\065\b") at strings.c:76 #4 0x081b17d0 in ast_str_set_va (buf=0x...
2009 Mar 21
2
1.6.2 beta 1 crash
...ad20 in raise () from /lib/libc.so.6 #2 0x0019c631 in abort () from /lib/libc.so.6 #3 0x001d2e6b in __libc_message () from /lib/libc.so.6 #4 0x001dd440 in _int_realloc () from /lib/libc.so.6 #5 0x001de377 in realloc () from /lib/libc.so.6 #6 0x081403b5 in __ast_str_helper (buf=0xb6f9ed54, max_len=0, append=1, fmt=0x60f0ac3 ",", ap=0xb6f9ea1c "") at /usr/src/integra/asterisk-1.6.2.0-beta1/include/asterisk/utils.h:493 #7 0x0814d531 in ast_str_append (buf=0xb6f9ed54, max_len=0, fmt=0x60f0ac3 ",") at /usr/src/integra/asterisk-1.6.2.0-beta1/include/asterisk/s...
2017 Nov 29
0
[PATCH v18 07/10] virtio-balloon: VIRTIO_BALLOON_F_SG
..._end form the range of bits in the xbitmap that + * need to be searched. + */ +static void tell_host_sgs(struct virtio_balloon *vb, + struct virtqueue *vq, + unsigned long page_xb_start, + unsigned long page_xb_end) +{ + unsigned long pfn_start, pfn_end; + uint64_t addr; + uint32_t len, max_len = round_down(UINT_MAX, PAGE_SIZE); + + pfn_start = page_xb_start; + while (pfn_start < page_xb_end) { + pfn_start = xb_find_next_set_bit(&vb->page_xb, pfn_start, + page_xb_end); + if (pfn_start == page_xb_end + 1) + break; + pfn_end = xb_find_next_zero_bit(&vb->page_xb,...
2017 Dec 19
0
[PATCH v20 4/7] virtio-balloon: VIRTIO_BALLOON_F_SG
..._xb_start and @page_xb_end form the range of bits in the xbitmap that + * need to be searched. + */ +static void tell_host_sgs(struct virtio_balloon *vb, + struct virtqueue *vq, + unsigned long page_xb_start, + unsigned long page_xb_end) +{ + unsigned long pfn_start, pfn_end; + uint32_t max_len = round_down(UINT_MAX, PAGE_SIZE); + uint64_t len; + + pfn_start = page_xb_start; + while (pfn_start < page_xb_end) { + pfn_start = xb_find_set(&vb->page_xb, page_xb_end + 1, + pfn_start); + if (pfn_start == page_xb_end + 1) + break; + pfn_end = xb_find_zero(&vb->page_xb,...
2018 Jan 09
0
[PATCH v21 2/5 RESEND] virtio-balloon: VIRTIO_BALLOON_F_SG
..._xb_start and @page_xb_end form the range of bits in the xbitmap that + * need to be searched. + */ +static void tell_host_sgs(struct virtio_balloon *vb, + struct virtqueue *vq, + unsigned long page_xb_start, + unsigned long page_xb_end) +{ + unsigned long pfn_start, pfn_end; + uint32_t max_len = round_down(UINT_MAX, PAGE_SIZE); + uint64_t len; + + pfn_start = page_xb_start; + while (pfn_start < page_xb_end) { + if (!xb_find_set(&vb->page_xb, page_xb_end, &pfn_start)) + break; + pfn_end = pfn_start + 1; + if (!xb_find_zero(&vb->page_xb, page_xb_end, &pfn_end)...
2019 Dec 21
0
[PATCH 8/8] DO NOT MERGE: iommu: disable list appending in dma-iommu
...b912c87 100644 --- a/drivers/iommu/dma-iommu.c +++ b/drivers/iommu/dma-iommu.c @@ -853,8 +853,7 @@ static int __finalise_sg(struct device *dev, struct scatterlist *sg, int nents, { struct scatterlist *s, *cur = sg; unsigned long seg_mask = dma_get_seg_boundary(dev); - unsigned int cur_len = 0, max_len = dma_get_max_seg_size(dev); - int i, count = 0; + int i; for_each_sg(sg, s, nents, i) { /* Restore this segment's original unaligned fields first */ @@ -862,39 +861,16 @@ static int __finalise_sg(struct device *dev, struct scatterlist *sg, int nents, unsigned int s_length = sg_dma_le...
2020 Aug 21
0
[PATCH v3 5/6] iommu/virtio: Support topology description in config space
...+ pr_warn("unhandled format 0x%x\n", ioread8(&cfg->hdr.type)); + ret = 0; + goto err_free; + } + return spec; + +err_free: + kfree(spec); + return ERR_PTR(ret); +} + +static int viommu_parse_topology(struct device *dev, + struct virtio_iommu_config __iomem *cfg, + size_t max_len) +{ + int ret; + u16 len; + size_t i; + LIST_HEAD(endpoints); + size_t offset, count; + struct virt_topo_iommu *viommu; + struct virt_topo_endpoint *ep, *next; + struct viommu_topo_header __iomem *cur; + + offset = ioread16(&cfg->topo_config.offset); + count = ioread16(&cfg->topo_conf...
2020 Sep 04
1
[PATCH v3 5/6] iommu/virtio: Support topology description in config space
...>hdr.type)); > + ret = 0; > + goto err_free; > + } > + return spec; > + > +err_free: > + kfree(spec); > + return ERR_PTR(ret); > +} > + > +static int viommu_parse_topology(struct device *dev, > + struct virtio_iommu_config __iomem *cfg, > + size_t max_len) > +{ > + int ret; > + u16 len; > + size_t i; > + LIST_HEAD(endpoints); > + size_t offset, count; > + struct virt_topo_iommu *viommu; > + struct virt_topo_endpoint *ep, *next; > + struct viommu_topo_header __iomem *cur; > + > + offset = ioread16(&cfg->topo_co...
2014 Nov 17
3
Re: [PATCH] list-applications: Add support for pacman
OK, I'll try to fix the epoch thing for all three. Nikos On 17 November 2014 13:49, Richard W.M. Jones <rjones@redhat.com> wrote: > On Mon, Nov 17, 2014 at 01:41:28PM +0200, Nikos Skalkotos wrote: >> OK, I'll make the suggested changes and I'll try to come up with a new >> patch by tomorrow or the day after tomorrow. I just noticed that a >> space is
2015 Dec 02
2
fuzzer crash (but not the good kind)
...ation can take a very long time to execute (tens or hundreds of seconds). Let me know if you need more info, I think it shouldn't take much test time to reproduce this. ================== Job 2 exited with exit code 256 ============ Flag: verbosity 3 Flag: use_traces 1 Flag: timeout 100 Flag: max_len 16384 Seed: 3259211893 PreferSmall: 0 #0 READ units: 4975 exec/s: 0 #1 pulse cov: 32410 bits: 30791 indir: 714 units: 4975 exec/s: 0 NEW0: 32410 L 13869 ==31301==AddressSanitizer CHECK failed: /home/brian/src/fuzzpy/llvm_src/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_cove...
2016 Aug 26
2
[PATCH 9/9] Optimize silk_inner_prod_aligned_scale() for ARM NEON
...N ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#include <stdio.h> +#include <string.h> + +#include "modes.h" +#include "SigProc_FIX.h" + +#define MAX_LEN 240 + +static int test_silk_inner_prod_aligned_scale(int arch) +{ + opus_int16 inVec1[MAX_LEN], inVec2[MAX_LEN]; + opus_int scale, len; + opus_int32 sum_org, sum_opt; + opus_int i; + + printf("%44s() ...", __func__); + for(scale = 0; scale <= 31; scale++) { +...