search for: max_char

Displaying 14 results from an estimated 14 matches for "max_char".

Did you mean: max_chars
2006 Nov 13
1
my_strncasecmp ignores max_chars
my_strncasecmp ignores the length parameter, which breaks all sorts of things on platforms where the function actually gets used. Trivial patch attached. -- Ben Winslow <rain at bluecherry.net> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: compat.c.diff URL:
2013 Oct 24
1
Problems with userdb lookup
...57344 "file %s: line %d (%s): assertion failed: (%s)") at failures.c:264 ctx = {type = LOG_TYPE_PANIC, exit_status = 0, timestamp = 0x0} args = 0xbfb12304 "" #6 0xb7751886 in p_strndup (pool=0xb7796544 <static_unsafe_data_stack_pool>, str=str at entry=0x0, max_chars=max_chars at entry=4294967295) at strfuncs.c:74 mem = <optimized out> len = <optimized out> __FUNCTION__ = "p_strndup" #7 0xb7751d7f in t_strndup (str=0x0, max_chars=4294967295) at strfuncs.c:236 No locals. #8 0x08057003 in auth_request_append_passwo...
2010 Aug 10
1
Why p_strdup and other string functions uses loops instead strlen? (dovecot 2.0.rc4)
I did Dovecot profiling on huge e-mail system, and p_strdup was very high on list. I do minor change: p_strdup: /* for (len = 0; (str)[len] != '\0'; ) len++; len++; */ len = strlen(str) + 1; p_strndup: /* len = 0; while (len < max_chars && ((const char *) str)[len] != '\0') len++; */ len = strnlen(str, max_chars); And after changes strdup drop down on the profile list. This is output from oprofile: samples % symbol name 28000 10.9764 p_strdup 8507 3.3349 safe_memset 7857 3.0801 .plt...
2008 Jan 07
1
assertion with outlook
...007, just retrieving mails. mails have been migrated via imapsync 2 days before to this server. dovecot is imap-server and LDA. has been seen with two different users, following syslog entries: Jan 7 18:27:01 siege dovecot: IMAP(userA): file strfuncs.c: line 165 (p_strndup): assertion failed: (max_chars != (size_t)-1) Jan 7 18:27:01 siege dovecot: IMAP(userA): Raw backtrace: imap [0x46372e] -> imap [0x46349c] -> imap(t_strndup+0) [0x470cf0] -> imap(cmd_create+0xd1) [0x4142c1] -> imap [0x4178f7] -> imap [0x417989] -> imap(_client_input+0x6d) [0x417fbd] -> imap(io_loop_han...
2007 Aug 16
3
imap killed with signal 6 (including backtrace)
Found this today multiple times for the same user: Aug 16 16:59:38 postamt dovecot: IMAP(username): file strfuncs.c: line 165 (p_strndup): assertion failed: (max_chars != (size_t)-1) Aug 16 16:59:38 postamt dovecot: IMAP(username): Raw backtrace: imap [0x80c6d53] -> imap(i_fatal+0) [0x80c6795] -> imap(p_strndup+0x38) [0x80d8316] -> imap(t_strndup+0x22) [0x80d86d7] -> imap(cmd_create+0xb5) [0x8059a39] -> imap [0x805eb09] -> imap [0x805ecf9] -&gt...
2010 Sep 09
1
Virtual mailbox help
...es then tried to login to client and getting the follwoing error in log file .. Sep 09 13:02:47 imap-login: Info: Login: user=<piyush>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3505, secured Sep 09 13:02:48 imap(piyush): Panic: file strfuncs.c: line 72 (p_strndup): assertion failed: (max_chars != (size_t)-1) Sep 09 13:02:48 imap(piyush): Error: Raw backtrace: /usr/local/dovecot/lib/dovecot/libdovecot.so.0 [0x9fefd9e1] -> /usr/local/dovecot/lib/dovecot/libdovecot.so.0 [0x9fefda5f] -> /usr/local/dovecot/lib/dovecot/libdovecot.so.0(i_error+0) [0x9fefdd18] -> /usr/local/dovecot/lib...
2002 Oct 23
2
vsnprintf()
...======== RCS file: /home/cvs/dovecot/src/lib/strfuncs.c,v retrieving revision 1.14 diff -c -u -r1.14 strfuncs.c --- strfuncs.c 20 Oct 2002 03:19:10 -0000 1.14 +++ strfuncs.c 23 Oct 2002 11:19:39 -0000 @@ -401,7 +401,7 @@ va_end(args); t_pop(); - if (ret < 0) { + if (ret < 0 || ret >= max_chars) { str[max_chars-1] = '\0'; ret = strlen(str); } -- Thomas Wouters <thomas at xs4all.net> Hi! I'm a .signature virus! copy me into your .signature file to help me spread!
2007 Oct 17
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...; - text->max_length = G_MAXUINT; } SwfdecLayout * @@ -434,7 +433,9 @@ tag_func_define_edit_text (SwfdecSwfDecoder * s, guint tag) text->color = SWFDEC_COLOR_COMBINE (255, 255, 255, 255); } if (has_max_length) { - text->max_length = swfdec_bits_get_u16 (b); + text->max_chars = swfdec_bits_get_u16 (b); + } else { + text->max_chars = 0; } if (has_layout) { guint align = swfdec_bits_get_u8 (b); diff --git a/libswfdec/swfdec_text_field.h b/libswfdec/swfdec_text_field.h index 1609a52..f3cd10d 100644 --- a/libswfdec/swfdec_text_field.h +++ b/libswfdec/swfd...
2007 Dec 04
0
TextAreaWithStatus 1.0 released
...a :description, :onkeyup => "limit_chars(this, 100, $ (''chars_left''))" %><br /> <span id="chars_left">You have <%= 100 - @object.description.length %> characters left. </span> into this: <%= f.text_area :description, :max_chars => 100 %> You can also customize the status message. == Install & Setup == You can install it with: script/plugin install http://text-area-with-status.googlecode.com/svn/tags/text_area_with_status Upon install it will try to copy the needed .js file under public/ javascripts fol...
2012 Aug 13
4
write.dbf error: invalid subscript type 'list'
...this error. *Error in c<logical="L", integer="N",numeric="F",charachetr="C", : invalid subscript type 'list' Calls: write.dbf -> <Anonymous>* If I added * write.dbf(df,"H:\\CIV\\CIVProject\\DATA\\plotdata.dbf",factor2char=TRUE,max_char=254) * Now, I get error as these are unused arguments. If I write it to text file using write.table, the text file looks like this. *"ID" "simloglkhd" "1" 1 6.72782753120542 "2" 2 3.37685863056105 "3" 3 3.28498537979818 "4" 4 4.15888243...
2008 Dec 02
2
my_vsnprintf crash on HP-UX
...mat=0x409f750 "my_vsnprintf(): Output string too big") at failures.c:197 #6 0x4306fb0:0 in my_vsnprintf (str=0x7ffff4a0 "4935b742", size=9, format=0x4094998 "%08x", ap=0x7ffff478) at compat.c:276 #7 0x42f9a20:0 in i_snprintf (dest=0x7ffff4a0 "4935b742", max_chars=9, format=0x4094998 "%08x") at strfuncs.c:23 #8 0x41e6cd0:0 in mailbox_uidvalidity_write ( path=0x4001d400 "/maildir/example.com/arandomuser/dovecot-uidvalidity", uid_validity=1228257090) at mailbox-uidvalidity.c:42 #9 0x41e7ac0:0 in mailbox_uidvalidity_next_resca...
2008 Nov 06
2
Compilation of 1.1.6 fails on HP-UX 11.31
Hi, $ uname -srv HP-UX B.11.31 U $ cc --version cc: HP C/aC++ B3910B A.06.20 [May 13 2008] Compilation fails, output of configure and make are given below. The cause of this is almost certainly that this version of HP-UX does define the QCMD macro in sys/quota.h (checked in the ifdef line 26 dovecot-1.1.6/src/plugins/quota/quota-fs.h) as well as the dqblk struct, but the latter with different
2007 Oct 22
0
12 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h test/trace
...wfdec/swfdec_text_field.h b/libswfdec/swfdec_text_field.h index cdbe1ec..0ecf9bf 100644 --- a/libswfdec/swfdec_text_field.h +++ b/libswfdec/swfdec_text_field.h @@ -52,7 +52,7 @@ struct _SwfdecTextField gboolean html; - gboolean input; + gboolean editable; gboolean password; int max_chars; gboolean selectable; diff --git a/libswfdec/swfdec_text_field_movie.c b/libswfdec/swfdec_text_field_movie.c index d3e4a2a..78fd2b3 100644 --- a/libswfdec/swfdec_text_field_movie.c +++ b/libswfdec/swfdec_text_field_movie.c @@ -115,9 +115,9 @@ swfdec_text_field_movie_generate_paragraph (SwfdecT...
2007 Oct 29
0
20 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h
...ot; color = %u", text->color); @@ -149,11 +153,13 @@ tag_func_define_edit_text (SwfdecSwfDecoder * s, guint tag) SWFDEC_WARNING ("FIXME: figure out default color"); text->color = SWFDEC_COLOR_COMBINE (255, 255, 255, 255); } + if (has_max_length) { text->max_chars = swfdec_bits_get_u16 (b); } else { text->max_chars = 0; } + if (has_layout) { guint align = swfdec_bits_get_u8 (b); switch (align) { @@ -178,13 +184,15 @@ tag_func_define_edit_text (SwfdecSwfDecoder * s, guint tag) text->indent = swfdec_bits_get_u16 (b); te...