Displaying 20 results from an estimated 40 matches for "str_len".
Did you mean:
intr_len
2016 Dec 06
2
2.2.27 panic file mail-index-map.c: line 549 (mail_index_map_lookup_seq_range): assertion failed: (first_uid > 0)
...at first 100 and they are below. I will mail you the
binary and core in seperate mail.
(gdb) f 14
#14 0x08058219 in cmd_search (cmd=0x85e1800) at cmd-search.c:42
42 ret = imap_search_args_build(cmd, args, charset, &sargs);
(gdb) p args[0]
$1 = {type = IMAP_ARG_ATOM, parent = 0x0, str_len = 3, _data = {str =
0x85e40f8 "ALL", literal_size = 140394744, list = {arr = {buffer =
0x85e40f8, element_size = 0}, v = 0x85e40f8, v_modifiable = 0x85e40f8}},
literal8 = 0}
(gdb) p args[1]
$2 = {type = IMAP_ARG_ATOM, parent = 0x0, str_len = 3, _data = {str =
0x85e4100 "NOT&quo...
2016 Dec 06
2
2.2.27 panic file mail-index-map.c: line 549 (mail_index_map_lookup_seq_range): assertion failed: (first_uid > 0)
On 06.12.2016 09:32, Toni Mattila wrote:
> Hi,
>
> On 05-Dec-16 20:28, Toni Mattila wrote:
>> Panicing stopped when all index files where deleted.
>
> It happens again in same user account, so rebuilding indexes didn't
> fix it.
>
> Here's bt full instead of just bt:
> #0 0x001d4402 in __kernel_vsyscall ()
> No symbol table info available.
> #1
2006 Jul 05
2
Procmail patch for dovecot delivery
...org_mail) isinbox = !strcmp(s_org_mail, boxname);
+
+ if (trydeliver && program && ((!isinbox && !isabsolute) || (isinbox && deliver_inbox) || (isabsolute && deliver_absolute_path)) )
+ {
+ char slen[16];
+ int oldrawnonl;
+ int retval;
+ size_t str_len;
+ char* tmp;
+
+ int deliver_raw_mode = isyes("DELIVER_RAW_MODE");
+ int deliver_remove_from = isyes("DELIVER_REMOVE_FROM");
+ int deliver_replace_inbox_name = isyes("DELIVER_REPLACE_INBOX_NAME");
+
+ char* s_deliver_new_inbox_name = getenv("DELIVE...
2009 Aug 08
2
[PATCH] pxe: fix OACK packet handling
...s; guaranteed to be null-terminated
*/
@@ -944,8 +940,10 @@ static void pxe_searchdir(char *filename, struct file *file)
do {
tftp_opt = tftp_options;
for (i = 0; i < tftp_opts; i++) {
- if (!strncmp(p, tftp_opt->str_ptr,tftp_opt->str_len))
+ if (!strncmp(p, tftp_opt->str_ptr,tftp_opt->str_len)) {
+ buffersize -= tftp_opt->str_len;
break;
+ }
tftp_opt++;
}
if (i == tftp_opts)
@@ -954,13 +952,15 @@ static void pxe...
2017 Sep 08
5
EOF from net_disconnect(fd)
...through the socket so I can see if the plugin is indeed sending the EOF? Knowing that lets me know if I need to chase down the issue in the Go daemon code.
I?m no pro with C but I tried. The snippet from the plugin follows:
alarm(1);?????????????? ???
{
if (net_transmit(fd, str_data(req), str_len(req)) < 0) {
? i_error("write(%s) failed: %m", socket_path);
? ret = -1;
} else {
? char res[1024];
? ret = net_receive(fd, res, sizeof(res)-1);
? if (ret < 0) {
??????????????? i_error("read(%s) failed: %m", socket_path);
? } else {
??????????????? res[ret] = ...
2013 Oct 14
0
[LLVMdev] Runtime Array-Length
The toy language I've been playing around with represents all strings as a
struct in llvm;
struct string{
char *ptr;
int str_len;
int buffer_len;
}
And my AST has an interface like;
String_AST{
int measure();
void copy(char *dest);
struct string get_value();
}
A constant string can be measured at compile time, for a string variable
measure() just extracts str_len. Strings passed in from other external
sources are...
2017 Sep 08
1
EOF from net_disconnect(fd)
...ed to chase down the issue in the Go daemon code.
>>
>>
>>
>> I?m no pro with C but I tried. The snippet from the plugin follows:
>>
>>
>>
>> alarm(1);
>>
>> {
>>
>> if (net_transmit(fd, str_data(req), str_len(req)) < 0) {
>>
>> i_error("write(%s) failed: %m", socket_path);
>>
>> ret = -1;
>>
>> } else {
>>
>> char res[1024];
>>
>> ret = net_receive(fd, res, sizeof(res)-1);
>>
>> if (ret < 0) {
>>
&g...
2013 Oct 12
2
[LLVMdev] Runtime Array-Length
All,
I am building my own language with llvm as the base.
I was working on string concatenation (where a string is just an array of
characters cast to a pointer to a character (i8*) ). Given two strings, it
is possible to determine the length of new string by summing the number of
characters until the null terminator and adding one.
Unfortunately, I have no idea how to use the c-api to store
2013 Oct 14
1
[LLVMdev] Runtime Array-Length
...bal
array with its size determined by a Value*.
On Mon, Oct 14, 2013 at 5:46 AM, Jeremy Lakeman <Jeremy.Lakeman at gmail.com>wrote:
> The toy language I've been playing around with represents all strings as a
> struct in llvm;
>
> struct string{
> char *ptr;
> int str_len;
> int buffer_len;
> }
>
> And my AST has an interface like;
>
> String_AST{
> int measure();
> void copy(char *dest);
> struct string get_value();
> }
>
> A constant string can be measured at compile time, for a string variable
> measure() just extrac...
2017 Sep 08
0
EOF from net_disconnect(fd)
...d sending the EOF? Knowing that lets me know if I need to chase down the issue in the Go daemon code.
>
>
>
> I?m no pro with C but I tried. The snippet from the plugin follows:
>
>
>
> alarm(1);
>
> {
>
> if (net_transmit(fd, str_data(req), str_len(req)) < 0) {
>
> i_error("write(%s) failed: %m", socket_path);
>
> ret = -1;
>
> } else {
>
> char res[1024];
>
> ret = net_receive(fd, res, sizeof(res)-1);
>
> if (ret < 0) {
>
> i_error("read(%s) failed: %m&q...
2004 Dec 06
0
[PATCH] passdb cache fixes
...58,8 @@ void auth_request_extra_finish(struct au
if (passdb_cache != NULL && cache_key != NULL) {
str = t_str_new(64);
- str_append_str(str, extra->str);
+ if (extra->str != NULL)
+ str_append_str(str, extra->str);
if (extra->request->no_failure_delay) {
if (str_len(str) > 0)
str_append_c(str, '\t');
@@ -266,7 +267,8 @@ void auth_request_extra_finish(struct au
}
auth_cache_insert(passdb_cache, extra->request, cache_key,
t_strconcat(extra->password == NULL ? "" :
- extra->password, "\t",
+...
2004 Dec 21
1
error when popping mail over DSL
Hi,
I have a user who is getting a strange error when popping his mail over
a DSL line. The error in my log file is as follows:
file client.c: line 237 (client_send_line): assertion failed:
((size_t)ret == str_len(str))
I can POP his mail just find here locally connected to the server via
100bT, but over his DSL link, he gets this error.
His mailbox size is 24MB, and he is using outlook w/ the option 'leave a
copy of messages on the server'. He has Outlook 2003 and we use Dovecot
1.0 test 42. Is t...
2019 Jun 26
3
[nbdkit PATCH v2 0/2] adding nbdkit --run '$uri'
Since v1:
- new patch to add uri_quote()
- rebase on top of other recent patches needed while auditing shell_quote()
- use uri_quote() instead of shell_quote() for producing $uri
Eric Blake (2):
common/utils: Add uri_quote and tests
captive: Support $uri in --run
docs/nbdkit-captive.pod | 8 ++-
common/utils/utils.h | 1 +
common/utils/test-quotes.c | 108
2016 Dec 06
0
2.2.27 panic file mail-index-map.c: line 549 (mail_index_map_lookup_seq_range): assertion failed: (first_uid > 0)
...0]
>> p args[1]
>> ...
>> until NULL
>
> My hand got sore at first 100 and they are below. I will mail you the
> binary and core in seperate mail.
>
> Cheers,
>
> Toni
Thanks. I should've probably said until EOL.
$5 = {type = IMAP_ARG_EOL, parent = 0x0, str_len = 0, _data = {str =
0x0, literal_size = 0, list = {arr = {buffer = 0x0, element_size = 0}, v
= 0x0, v_modifiable = 0x0}}, literal8 = 0}
Aki
2016 Dec 06
2
2.2.27 panic file mail-index-map.c: line 549 (mail_index_map_lookup_seq_range): assertion failed: (first_uid > 0)
...til NULL
>>
>> My hand got sore at first 100 and they are below. I will mail you the
>> binary and core in seperate mail.
>>
>> Cheers,
>>
>> Toni
>
> Thanks. I should've probably said until EOL.
>
> $5 = {type = IMAP_ARG_EOL, parent = 0x0, str_len = 0, _data = {str =
> 0x0, literal_size = 0, list = {arr = {buffer = 0x0, element_size = 0},
> v = 0x0, v_modifiable = 0x0}}, literal8 = 0}
>
> Aki
I was able to repeat this bug, thank you for your report.
Aki
2006 Jul 14
0
dovecot 1.00 RC2 bugs
...still shows 4 messages and some used storage.
My workaround is
--- src/plugins/quota/quota-maildir.c.orig Sun Jun 11 21:36:24 2006
+++ src/plugins/quota/quota-maildir.c Thu Jul 13 11:33:58 2006
========================================================
@@ -82,6 +82,8 @@
len = str_len(path);
while ((dp = readdir(dirp)) != NULL) {
+ if (!strcmp(dp->d_name, ".")) continue;
+ if (!strcmp(dp->d_name, "..")) continue;
p = strstr(dp->d_name, ",S=");
num = (uoff_t)-1;...
2006 Nov 03
1
auth-req-handler.c adds spurious tab
...ttached below.
Chris
--- src/auth/auth-request-handler.c.orig 2006-11-03
13:10:35.000000000 +0100
+++ src/auth/auth-request-handler.c 2006-11-03 13:08:32.000000000 +0100
@@ -139,6 +139,10 @@
str_append(str, fields[src]);
}
}
+
+ if (str_len(str) == 0)
+ return NULL;
+
return str_c(str);
}
2011 Mar 08
1
ID command bug & patch
...following patch makes it log instead:
ID sent: a=b, c=d
--- a/dovecot/src/lib-imap/imap-id.c (revision 113366)
+++ b/dovecot/src/lib-imap/imap-id.c (working copy)
@@ -164,6 +164,7 @@
str_append_c(reply, '=');
str_append(reply, str_sanitize(value, 80));
}
+ args++;
}
return str_len(reply) == 0 ? NULL : str_c(reply);
}
2009 Aug 08
0
[PATCH] core:PXELINUX: fix the OACK option parsing bug.
...+ /*
+ * Parse option pointed to by options; guaranteed to be
null-terminated
+ */
+ p = options;
tftp_opt = tftp_options;
for (i = 0; i < tftp_opts; i++) {
if (!strncmp(p, tftp_opt->str_ptr,tftp_opt->str_len))
--
1.5.6.rc0
--
regards
liu Aleaxander
2013 Jun 08
1
Problem redirecting email using pigeonhole 0.4.0 (with patch)
..., "X-Sieve", SIEVE_IMPLEMENTATION, FALSE, NULL);
if ( recipient != NULL )
- rfc2822_header_write(hdr, "X-Sieve-Redirected-From", recipient);
+ rfc2822_header_append(hdr, "X-Sieve-Redirected-From", recipient,
FALSE, NULL);
o_stream_send(output, str_data(hdr), str_len(hdr));
} T_END;
Best regards,
Andrey.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crlf.patch
Type: application/octet-stream
Size: 838 bytes
Desc: not available
URL: <http://dovecot.org/pipermail/dovecot/attachments/20130609/f9a35d0a/attachment-0001.obj&...