search for: buffer_create_dynamic

Displaying 19 results from an estimated 19 matches for "buffer_create_dynamic".

2003 Apr 21
1
Message with lots of attachments breaks Dovecot
...that it remains contiguous. *** mail-index-update.c.orig Wed Mar 26 10:41:55 2003 --- mail-index-update.c Sun Apr 20 16:53:45 2003 *************** *** 498,504 **** if (cache_fields & DATA_FIELD_MESSAGEPART) { t_push(); ! buf = buffer_create_dynamic(data_stack_pool, 2048, (size_t)-1); message_part_serialize(part, buf); --- 498,504 ---- if (cache_fields & DATA_FIELD_MESSAGEPART) { t_push(); ! buf =...
2018 Dec 06
0
Dovecot 2.3.4 crashing on Solaris 10 - "Panic: output stream is missing error handling"
...1: -> libdovecot:pool_system_free(0xff0fb050, 0x4af60, 0xff0fb030, 0xff059470) /1 at 1: <- libdovecot:buffer_free() = 0 /1 at 1: -> libdovecot:pool_datastack_create(0xc3ed8, 0xc4200, 0x328, 0x0) /1 at 1: <- libdovecot:pool_datastack_create() = 0x42a58 /1 at 1: -> libdovecot:buffer_create_dynamic(0x42a58, 0x20, 0x8000, 0xff0f44f4) /1 at 1: <- libdovecot:buffer_create_dynamic() = 0x42a68 /1 at 1: -> libdovecot:buffer_append(0x42a68, 0x525c8, 0x4, 0x42a68) /1 at 1: -> libdovecot:buffer_write(0x42a68, 0x0, 0x525c8, 0x4) /1 at 1: <- libdovecot:buffer_append() = 0x42a88 /1 at...
2008 Sep 10
4
Panic: IMAP: Trying to allocate 2273345672 bytes
...:56:07+01:00 mail8 dovecot: IMAP(xxx): Raw backtrace: /usr/libexec/dovecot/imap [0x80d0310] -> /usr/libexec/dovecot/imap [0x80d036a] -> /usr/libexec/dovecot/imap [0x80cfc2c] -> /usr/libexec/dovecot/imap [0x80d966c] -> /usr/libexec/dovecot/imap [0x80ce750] -> /usr/libexec/dovecot/imap(buffer_create_dynamic+0x30) [0x80ce800] -> /usr/libexec/dovecot/imap(mail_index_sync_ext_intro+0x4d5) [0x80c0145] -> /usr/libexec/dovecot/imap(mail_index_sync_record+0x135) [0x80b11b5] -> /usr/libexec/dovecot/imap(mail_index_sync_map+0x269) [0x80b1d79] -> /usr/libexec/dovecot/imap(mail_index_map+0x38e) [0x80...
2008 Dec 10
2
assert with zlib and (maybe) fts
Hi, I compressed a folder with the following script: ... for i in *.*.*; do file $i | grep bzip2 >/dev/null 2>&1 if [ $? -ne 0 ]; then echo "Compress: $i" cat "$i" | bzip2 -9 > ../tmp/$i if [ $? -eq 0 ]; then mv ../tmp/$i $i fi else
2004 Aug 09
1
[PATCH] RPA authentication mechanism
...; + } +} + +static const char * +mech_rpa_build_token2(struct rpa_auth_request *auth, + const char *realms, size_t *size) +{ + unsigned int realms_len = strlen(realms); + unsigned int length = sizeof(rpa_oid) + 3 + RPA_SCHALLENGE_LEN + + RPA_TIMESTAMP_LEN + 2 + realms_len; + buffer_t *buf = buffer_create_dynamic(auth->pool, length + 4, 4096); + unsigned char timestamp[RPA_TIMESTAMP_LEN / 2]; + + buffer_append_c(buf, ASN1_APPLICATION); + buffer_append_asn1_length(buf, length); + buffer_append(buf, rpa_oid, sizeof(rpa_oid)); + + /* Protocol version */ + buffer_append_c(buf, 3); + buffer_append_c(buf, 0);...
2007 Sep 30
2
Problem searching with thunderbird
...eems to keep searching but shows no restults. Any ideas why? dovecot: Sep 30 14:12:04 Error: IMAP(jon): Trying to allocate 2217042872 bytes dovecot: Sep 30 14:12:04 Error: IMAP(jon): Raw backtrace: imap [0x80b705e] -> imap [0x80b6bab] -> imap [0x80bdbe3] -> imap [0x80b5b65] -> imap(buffer_create_dynamic+0x27) [0x80b5c97] -> imap(t_str_new+0x17) [0x80c2a97] -> imap(message_search_init+0x42) [0x80b2d2e] -> imap [0x808abb4] -> imap [0x808aca7] -> imap [0x80a8c6c] -> imap(mail_search_args_foreach+0x23) [0x80a8cff] -> imap [0x808ae68] -> imap(message_parse_header+0x44) [0x80...
2012 Oct 02
2
[PATCH] Add SCRAM-SHA-1 password scheme
...er_final_message; switch (result) { case PASSDB_RESULT_OK: - if (!verify_credentials(request, credentials, size)) { + fields = t_strsplit(t_strndup(credentials, size), ","); + + iter = atoi(fields[0]); + salt = fields[1]; + + len = strlen(fields[2]); + request->stored_key = buffer_create_dynamic(request->pool, + MAX_BASE64_DECODED_SIZE(len)); + if (base64_decode(fields[2], len, NULL, + request->stored_key) < 0) { auth_request_log_info(auth_request, "scram-sha-1", - "password mismatch"); + "Invalid base64 encoding" +...
2018 Jan 24
0
Panic: data stack: Out of memory when allocating bytes
...4/dovecot/libdovecot.so.0 No symbol table info available. #4 0x00007f73f17abdeb in t_malloc0 () from /usr/lib64/dovecot/libdovecot.so.0 No symbol table info available. #5 0x00007f73f17a95dd in ?? () from /usr/lib64/dovecot/libdovecot.so.0 No symbol table info available. #6 0x00007f73f17a967b in buffer_create_dynamic () from /usr/lib64/dovecot/libdovecot.so.0 No symbol table info available. #7 0x00007f73f17a803b in backtrace_get () from /usr/lib64/dovecot/libdovecot.so.0 No symbol table info available. #8 0x00007f73f17af1da in ?? () from /usr/lib64/dovecot/libdovecot.so.0 No symbol table info available. #9...
2004 Oct 22
1
[PATCH] support OEM encoding in NTLM messages
...EGOTIATE_NTLM2) flags |= NTLMSSP_NEGOTIATE_NTLM2; @@ -134,6 +149,7 @@ ntlmssp_create_challenge(pool_t pool, co { buffer_t *buf; uint32_t flags = ntlmssp_flags(read_le32(&request->flags)); + int unicode = flags & NTLMSSP_NEGOTIATE_UNICODE; struct ntlmssp_challenge c; buf = buffer_create_dynamic(pool, sizeof(struct ntlmssp_challenge)); @@ -149,7 +165,7 @@ ntlmssp_create_challenge(pool_t pool, co if (flags & NTLMSSP_TARGET_TYPE_SERVER) ntlmssp_append_string(buf, offsetof(struct ntlmssp_challenge, target_name), - my_hostname); + my_hostname, unicode); ntlmssp_append_targ...
2007 Jan 11
1
A few rc17 imap crashes
...ib/libc.so.1 > #4 0xff1c1dec in _malloc_unlocked () from /usr/lib/libc.so.1 > #5 0xff1c1ce0 in malloc () from /usr/lib/libc.so.1 > #6 0xff1b617c in calloc () from /usr/lib/libc.so.1 > #7 0x89c18 in pool_system_malloc (pool=0xb66f0, size=28) at mempool-system.c:67 > #8 0x7fa58 in buffer_create_dynamic (pool=0xb66f0, init_size=20) at buffer.c:109 > #9 0x56924 in index_transaction_init (t=0xcf090, ibox=0xd03a8, flags=0) at index-transaction.c:13 > #10 0x38fa0 in mbox_transaction_begin (box=0xcf090, flags=0) at mbox-transaction.c:16 > #11 0x71954 in mailbox_transaction_begin (box=0xcf090,...
2018 Jan 29
1
Panic: data stack: Out of memory when allocating bytes
...??????? mem = <value optimized out> > #5? 0x00007f73f17a95dd in p_malloc (buf=0x7f73ebdcef28, size=513) at > mempool.h:99 > No locals. > #6? buffer_alloc (buf=0x7f73ebdcef28, size=513) at buffer.c:34 > ??????? __func__ = "buffer_alloc" > #7? 0x00007f73f17a967b in buffer_create_dynamic (pool=<value optimized > out>, init_size=512) at buffer.c:143 > ??????? buf = 0x7f73ebdcef28 > #8? 0x00007f73f17a803b in backtrace_get (backtrace_r=0x7ffd0ddd8358) at > backtrace-string.c:86 > ??????? str = <value optimized out> > #9? 0x00007f73f17af1da in default_...
2018 Jan 24
2
Panic: data stack: Out of memory when allocating bytes
On Wed, Jan 24, 2018 at 18:55:47 +0100, Thomas Robers wrote: > Am 23.01.2018 um 20:07 schrieb Josef 'Jeff' Sipek: > > On Tue, Jan 23, 2018 at 14:03:27 -0500, Josef 'Jeff' Sipek wrote: > > > On Tue, Jan 23, 2018 at 18:21:38 +0100, Thomas Robers wrote: ... > > > 1. Do you have any idea what the imap process was doing at the time of the > > >
2012 Aug 13
2
[PATCH] Replace hard-coded PKG_STATEDIR with state_dir setting
.../ssl-params/main.c b/src/ssl-params/main.c --- a/src/ssl-params/main.c +++ b/src/ssl-params/main.c @@ -112,11 +112,12 @@ static void main_init(const struct ssl_params_settings *set) { + const char *filename; lib_signals_set_handler(SIGCHLD, LIBSIG_FLAGS_SAFE, sig_chld, NULL); ssl_params = buffer_create_dynamic(default_pool, 1024); - param = ssl_params_init(PKG_STATEDIR"/"SSL_BUILD_PARAM_FNAME, - ssl_params_callback, set); + filename = t_strconcat(set->state_dir, "/"SSL_BUILD_PARAM_FNAME, NULL); + param = ssl_params_init(filename, ssl_params_callback, set); } static void main...
2018 Jan 25
0
Panic: data stack: Out of memory when allocating bytes
...ize=513) at data-stack.c:468 mem = <value optimized out> #5 0x00007f73f17a95dd in p_malloc (buf=0x7f73ebdcef28, size=513) at mempool.h:99 No locals. #6 buffer_alloc (buf=0x7f73ebdcef28, size=513) at buffer.c:34 __func__ = "buffer_alloc" #7 0x00007f73f17a967b in buffer_create_dynamic (pool=<value optimized out>, init_size=512) at buffer.c:143 buf = 0x7f73ebdcef28 #8 0x00007f73f17a803b in backtrace_get (backtrace_r=0x7ffd0ddd8358) at backtrace-string.c:86 str = <value optimized out> #9 0x00007f73f17af1da in default_fatal_finish (type=<value o...
2018 Sep 10
1
make check (pigeonhole)
...eplace_malloc.c:711) ==29930==??? by 0x5277456: block_alloc.isra.1 (mempool-alloconly.c:254) ==29930==??? by 0x527751D: pool_alloconly_malloc (mempool-alloconly.c:283) ==29930==??? by 0x5250ED5: p_malloc (mempool.h:99) ==29930==??? by 0x5250ED5: buffer_alloc (buffer.c:34) ==29930==??? by 0x525110C: buffer_create_dynamic (buffer.c:143) ==29930==??? by 0x5272805: array_create_i (array.h:129) ==29930==??? by 0x5272805: event_get_field (lib-event.c:383) ==29930==??? by 0x5273283: event_add_str (lib-event.c:400) ==29930==??? by 0x5273437: event_add_fields (lib-event.c:438) ==29930==??? by 0x4E879FD: mail_storage_servic...
2018 Mar 04
1
2.2.34 fails to build on OpenBSD
...s/libssl_iostream_openssl.so: undefined reference to `t_strndup' .libs/libssl_iostream_openssl.so: undefined reference to `i_stream_set_input_pending' .libs/libssl_iostream_openssl.so: undefined reference to `i_stream_set_name' .libs/libssl_iostream_openssl.so: undefined reference to `buffer_create_dynamic' .libs/libssl_iostream_openssl.so: undefined reference to `pool_alloconly_create' .libs/libssl_iostream_openssl.so: undefined reference to `o_stream_set_no_error_handling' .libs/libssl_iostream_openssl.so: undefined reference to `default_pool' .libs/libssl_iostream_openssl.so: und...
2018 Jan 23
2
Panic: data stack: Out of memory when allocating bytes
On Tue, Jan 23, 2018 at 14:03:27 -0500, Josef 'Jeff' Sipek wrote: > On Tue, Jan 23, 2018 at 18:21:38 +0100, Thomas Robers wrote: > > Hello, > > > > I'm using Dovecot 2.3 and sometimes i get this: > > > > --- snip --- > > Jan 23 14:23:13 mail dovecot: imap(bob at tutech.de)<4880><PDqibHFjMvrAqG1n>: > > Panic: data stack: Out of
2018 Sep 10
0
make check (pigeonhole)
...==29930==??? by 0x5277456: block_alloc.isra.1 (mempool-alloconly.c:254) > ==29930==??? by 0x527751D: pool_alloconly_malloc (mempool-alloconly.c:283) > ==29930==??? by 0x5250ED5: p_malloc (mempool.h:99) > ==29930==??? by 0x5250ED5: buffer_alloc (buffer.c:34) > ==29930==??? by 0x525110C: buffer_create_dynamic (buffer.c:143) > ==29930==??? by 0x5272805: array_create_i (array.h:129) > ==29930==??? by 0x5272805: event_get_field (lib-event.c:383) > ==29930==??? by 0x5273283: event_add_str (lib-event.c:400) > ==29930==??? by 0x5273437: event_add_fields (lib-event.c:438) > ==29930==??? by 0x4E8...
2018 Sep 09
3
make check (pigeonhole)
Hello list, During the 'make check' (pigeonhole) portion of a building (rpmbuild) a dovecot.spec file I'm getting the following error: testsuite(root): Fatal: Couldn't drop privileges: User is missing UID (see mail_uid setting) I'm not sure how to resolve this, and any help would be appreciated to help me finish the creating the rpm -- Eric Broch White Horse Technical