search for: t_malloc

Displaying 13 results from an estimated 13 matches for "t_malloc".

Did you mean: p_malloc
2013 Jun 15
2
Patch for pigeonhole 0.4.0 avoiding PATH_MAX
...ecot-2.1-pigeonhole-0.3.1. When building dovecot-2.2.2 there were no PATH_MAX problems on GNU/Hurd, thank you for that. However, pigeonhole 0.4.0 had one remaining PATH_MAX construct. The attached patch solves this problem. It it good enough to be accepted upstream? (According to the description of t_malloc, free is not needed, right?) Thanks, Svante Signell -------------- next part -------------- A non-text attachment was scrubbed... Name: fix_FTBFS4Hurd.patch Type: text/x-patch Size: 1057 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20130615/12ad3019/attachme...
2006 May 15
1
dovecot ldap auth bind and different directories
...*(*escape_func)(const char *)) { + char *str; static struct var_expand_table static_tab[] = { { 'u', NULL }, { 'n', NULL }, @@ -869,7 +870,27 @@ if (escape_func == NULL) escape_func = escape_none; - tab = t_malloc(sizeof(static_tab)); + /* count the number of domain components + in the given auth_request->user string + so we can allocate the correct sized + array + */ + int dc_count = 0; + str = strchr(auth_request->user, '@'); + while (s...
2008 Jul 05
1
AIX: mntctl implementation for NFS quota support
Hi Timo, Hello list, I've played around with dovecot-1.1.1 on AIX to get quotas (especially NFS quotas) to work. I've found that dovecot doesn't implement handling of 'mntctl' and so it is unable to determine filesystem mountpoints on AIX correctly. Your'll find more information about 'mntctl' here:
2012 Sep 04
2
[PATCH] Generalize HMAC implementation
...#include "randgen.h" @@ -655,12 +656,12 @@ cram_md5_generate(const char *plaintext, const char *user ATTR_UNUSED, const unsigned char **raw_password_r, size_t *size_r) { - struct hmac_md5_context ctx; + struct hmac_context ctx; unsigned char *context_digest; context_digest = t_malloc(CRAM_MD5_CONTEXTLEN); - hmac_md5_init(&ctx, (const unsigned char *)plaintext, - strlen(plaintext)); + hmac_init(&ctx, (const unsigned char *)plaintext, + strlen(plaintext), &hash_method_md5); hmac_md5_get_cram_context(&ctx, context_digest); *raw_password_r = context_...
2017 Mar 22
0
replicator crashing - oom
...gt;) at failures.c:670 #4 0x00007fddaf958322 in i_panic (format=format at entry=0x7fddafa047b8 "data stack: Out of memory when allocating %lu bytes") at failures.c:275 #5 0x00007fddaf9bee3f in mem_block_alloc (min_size=536870912) at data-stack.c:341 #6 0x00007fddaf9bf08b in t_malloc_real (size=size at entry=536870912, permanent=permanent at entry=true) at data-stack.c:396 #7 0x00007fddaf9bf0ca in t_malloc (size=size at entry=536870912) at data-stack.c:442 #8 0x00007fddaf9da5f8 in pool_data_stack_realloc (pool=<optimized out>, mem=0x7fdd99f59038, old_size=268435449,...
2017 Mar 24
3
replicator crashing - oom
...gt;) at failures.c:670 #4 0x00007fddaf958322 in i_panic (format=format at entry=0x7fddafa047b8 "data stack: Out of memory when allocating %lu bytes") at failures.c:275 #5 0x00007fddaf9bee3f in mem_block_alloc (min_size=536870912) at data-stack.c:341 #6 0x00007fddaf9bf08b in t_malloc_real (size=size at entry=536870912, permanent=permanent at entry=true) at data-stack.c:396 #7 0x00007fddaf9bf0ca in t_malloc (size=size at entry=536870912) at data-stack.c:442 #8 0x00007fddaf9da5f8 in pool_data_stack_realloc (pool=<optimized out>, mem=0x7fdd99f59038, old_size=268435449,...
2017 Nov 01
2
Bug: lmtp proxy does not quote local parts with spaces
...be officially recognised. -- David Zambonini -------------- next part -------------- --- dovecot-2.2.33.2.original/src/lib-mail/mail-user-hash.c 2017-10-05 18:10:44.000000000 +0100 +++ dovecot-2.2.33.2/src/lib-mail/mail-user-hash.c 2017-10-31 16:21:20.424866755 +0000 @@ -33,9 +33,13 @@ tab = t_malloc(sizeof(static_tab)); memcpy(tab, static_tab, sizeof(static_tab)); tab[0].value = username; - tab[1].value = t_strcut(username, '@'); - tab[2].value = strchr(username, '@'); - if (tab[2].value != NULL) tab[2].value++; + tab[2].value = strrchr(username, '@'); + if (...
2017 Nov 03
1
Bug: lmtp proxy does not quote local parts with spaces
...mtp_proxy_conn_data, rcpt); return 0; -------------- next part -------------- --- dovecot-2.2.33.2/src/lib-mail/mail-user-hash.c 2017-10-05 18:10:44.000000000 +0100 +++ dovecot-2.2.33.2.reverse-domaincut/src/lib-mail/mail-user-hash.c 2017-11-02 16:04:03.724866755 +0000 @@ -33,9 +33,13 @@ tab = t_malloc(sizeof(static_tab)); memcpy(tab, static_tab, sizeof(static_tab)); tab[0].value = username; - tab[1].value = t_strcut(username, '@'); - tab[2].value = strchr(username, '@'); - if (tab[2].value != NULL) tab[2].value++; + tab[2].value = strrchr(username, '@'); + if (...
2017 Mar 22
2
replicator crashing - oom
Where would I find the core file? I'm not finding anything obvious. The replicator path is /usr/local/libexec/dovecot/replicator Daniel On 3/22/2017 12:52 AM, Aki Tuomi wrote: > Can you provide us gdb bt full dump? > > gdb /usr/libexec/dovecot/replicator /path/to/core > > on some systems, it's /usr/lib/dovecot/replicator > > Aki > > On 21.03.2017 23:48,
2009 Dec 31
6
Oracle SQL driver
Hi all. Recently I was looking for an IMAP-server with Oracle support and unfortunatelly I couldn't find one. It was a surprise for me but there is no such functionality at all. So I've chosen an IMAP-server with most flexible and convinient architecture that was Dovecot-1.2.9 and written a driver for Oracle RDBMS support. I used Oracle Pro*C so a Pro*C preprocessor is needed to
2017 Mar 21
3
replicator crashing - oom
I have the following in my log: Mar 21 14:46:59 bubba dovecot: replicator: Panic: data stack: Out of memory when allocating 1073741864 bytes Mar 21 14:46:59 bubba dovecot: replicator: Error: Raw backtrace: /usr/local/lib/dovecot/libdovecot.so.0(+0x97c90) [0x7f4638a7cc90] -> /usr/local/lib/dovecot/libdovecot.so.0(+0x97d6e) [0x7f4638a7cd6e] ->
2017 Oct 26
2
Bug: lmtp proxy does not quote local parts with spaces
On 26/10/2017 18:38, Alexander Dalloz wrote: > Am 26.10.2017 um 12:20 schrieb David Zambonini: >> >> There seems to be a bug with RFC822 processing in ltmp proxying that >> doesn't >> quote local parts that, for example, contain spaces. > > Newer related RFCs are RFC 5321 and 5322. Typo, meant to say RFC2822, which they still supercede, not that the
2018 Mar 04
1
2.2.34 fails to build on OpenBSD
...nssl.so: undefined reference to `ssl_iostream_cert_match_name' .libs/libssl_iostream_openssl.so: undefined reference to `ssl_iostream_context_deinit' .libs/libssl_iostream_openssl.so: undefined reference to `o_stream_ref' .libs/libssl_iostream_openssl.so: undefined reference to `t_malloc' .libs/libssl_iostream_openssl.so: undefined reference to `buffer_append_space_unsafe' .libs/libssl_iostream_openssl.so: undefined reference to `i_error' .libs/libssl_iostream_openssl.so: undefined reference to `o_stream_get_fd' .libs/libssl_iostream_openssl.so: undefined r...