search for: translation_size

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

2007 Apr 18
7
[RFC, PATCH 5/24] i386 Vmi code patching
...signed char *dest = (unsigned char *)(&((VROMCallTable *)vmi_rom)->vromCall[call]); + *(unsigned long *)(eip+1) = dest-eip-5; +} + +static void fixup_translation(struct vmi_annotation *a) +{ + unsigned char *c, *start, *end; + int left; + + memcpy(a->nativeEIP, a->translationEIP, a->translation_size); + start = a->nativeEIP; + end = a->nativeEIP + a->translation_size; + + for (c = start; c < end;) { + switch(*c) { + case MNEM_CALL_NEAR: + patch_call_site(a, c); + c+=5; + break; + + case MNEM_PUSH_I: + c+=5; + break; + + case MNEM_PUSH_IB: + c+=2; + break...
2007 Apr 18
7
[RFC, PATCH 5/24] i386 Vmi code patching
...signed char *dest = (unsigned char *)(&((VROMCallTable *)vmi_rom)->vromCall[call]); + *(unsigned long *)(eip+1) = dest-eip-5; +} + +static void fixup_translation(struct vmi_annotation *a) +{ + unsigned char *c, *start, *end; + int left; + + memcpy(a->nativeEIP, a->translationEIP, a->translation_size); + start = a->nativeEIP; + end = a->nativeEIP + a->translation_size; + + for (c = start; c < end;) { + switch(*c) { + case MNEM_CALL_NEAR: + patch_call_site(a, c); + c+=5; + break; + + case MNEM_PUSH_I: + c+=5; + break; + + case MNEM_PUSH_IB: + c+=2; + break...
2015 Jan 12
2
HG e3640ccaa76d crashes upon IMAP SEARCH
...801] UIDs valid * OK [UIDNEXT 568] Predicted next UID * OK [HIGHESTMODSEQ 1029] Highest a OK [READ-WRITE] Select completed (0.003 secs). b search charset utf-8 body "Sleeve" imap(tlx at leuxner.net): Panic: file message-decoder.c: line 346 (message_decode_body): assertion failed: (ctx->translation_size <= sizeof(ctx->translation_buf)) imap(tlx at leuxner.net): Error: Raw backtrace: /usr/lib/dovecot/libdovecot.so.0(+0x7749f) [0x7ffe68e6d49f] -> /usr/lib/dovecot/libdovecot.so.0(default_fatal_handler+0x2a) [0x7ffe68e6d57a] -> /usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7ffe68e1df65] -...
2015 May 16
4
charset_to_utf8 assertion of remaining src_size
...2 2015 +0300 > +++ b/src/lib-mail/message-decoder.c Fri May 15 22:52:41 2015 -0700 > @@ -347,6 +347,8 @@ > sizeof(ctx->translation_buf)); > memcpy(ctx->translation_buf, data + pos, > ctx->translation_size); > + } else { > + charset_to_utf8_reset(ctx->charset_trans); > } I think the fix probably belongs to charset-iconv.c
2015 May 15
2
charset_to_utf8 assertion of remaining src_size
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hi, I have seen the following assertion fails on my own mail server (indexer-worker): Panic: file charset-iconv.c: line 132 (charset_to_utf8): assertion failed: (*src_size - pos <= CHARSET_MAX_PENDING_BUF_SIZE) However, when charset_to_utf8_try returns FALSE (e.g. iconv() got EINVAL or EILSEQ), the for loop in charset_to_utf8 may end earlier,
2014 Nov 04
1
doveadm index message-decoder assertion failed
...eindex my INBOX: doveadm index -u foo -q INBOX However, when I try to index an Archives folder: doveadm index -u foo -q Archives, the index-work crashed with this log message: dovecot: indexer-worker(foo): Panic: file message-decoder.c: line 363 (message_decode_body): assertion failed: (ctx->translation_size <= sizeof(ctx->translation_buf)) dovecot: indexer: Error: Indexer worker disconnected, discarding 1 requests for foo dovecot: indexer-worker(foo): Fatal: master: service(indexer-worker): child 28730 killed with signal 6 (core dumps disabled) The Archives folder has 22317 messages. Please...
2015 Jan 14
0
HG e3640ccaa76d crashes upon IMAP SEARCH
...Leuxner <tlx at leuxner.net> wrote: > $ doveconf -n | head > # 2.2.15 (e3640ccaa76d): /etc/dovecot/dovecot.conf > b search charset utf-8 body "Sleeve" > imap(tlx at leuxner.net): Panic: file message-decoder.c: line 346 (message_decode_body): assertion failed: (ctx->translation_size <= sizeof(ctx->translation_buf)) Hopefully fixed now? Looks like there have been all kinds of small bugs with searching.
2015 May 16
0
charset_to_utf8 assertion of remaining src_size
...Thu May 14 23:49:12 2015 +0300 +++ b/src/lib-mail/message-decoder.c Fri May 15 22:52:41 2015 -0700 @@ -347,6 +347,8 @@ sizeof(ctx->translation_buf)); memcpy(ctx->translation_buf, data + pos, ctx->translation_size); + } else { + charset_to_utf8_reset(ctx->charset_trans); } output->data = ctx->buf2->data; output->size = ctx->buf2->used; Cheers, -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJVVuYpAAoJEJW2GB...
2015 May 21
0
charset_to_utf8 assertion of remaining src_size
...+ b/src/lib-mail/message-decoder.c Fri May 15 22:52:41 2015 -0700 > > @@ -347,6 +347,8 @@ > > sizeof(ctx->translation_buf)); > > memcpy(ctx->translation_buf, data + pos, > > ctx->translation_size); > > + } else { > > + charset_to_utf8_reset(ctx->charset_trans); > > } > > I think the fix probably belongs to charset-iconv.c >
2007 Apr 18
1
[RFC, PATCH 21/24] i386 Vmi proc node
...atic char *vmi_call_name[] = { + VMI_CALLS +}; +#undef VDEF + +static void print_annotation(struct seq_file *m, struct vmi_annotation *a) +{ + seq_printf(m, "%s %p %d %p %d %d\n", + vmi_call_name[a->vmi_call], a->nativeEIP, a->native_size, + a->translationEIP, a->translation_size, a->nop_size); +} + +static int proc_vmi_annotations_show(struct seq_file *m, void *v) +{ + struct vmi_annotation *start = __vmi_annotation; + struct vmi_annotation *end = __vmi_annotation_end; + struct vmi_annotation *a; + + for (a = start; a < end; a++) { + print_annotation(m, a); + } +...
2007 Apr 18
1
[RFC, PATCH 21/24] i386 Vmi proc node
...atic char *vmi_call_name[] = { + VMI_CALLS +}; +#undef VDEF + +static void print_annotation(struct seq_file *m, struct vmi_annotation *a) +{ + seq_printf(m, "%s %p %d %p %d %d\n", + vmi_call_name[a->vmi_call], a->nativeEIP, a->native_size, + a->translationEIP, a->translation_size, a->nop_size); +} + +static int proc_vmi_annotations_show(struct seq_file *m, void *v) +{ + struct vmi_annotation *start = __vmi_annotation; + struct vmi_annotation *end = __vmi_annotation_end; + struct vmi_annotation *a; + + for (a = start; a < end; a++) { + print_annotation(m, a); + } +...
2007 Apr 18
3
[RFC, PATCH 4/24] i386 Vmi inline implementation
...:: input ); \ + asm volatile ( "" : output :: clobber ); \ +} while (0) + +#define VMI_NO_INPUT +#define VMI_NO_OUTPUT + +struct vmi_annotation { + unsigned long vmi_call; + unsigned char *nativeEIP; + unsigned char *translationEIP; + unsigned char native_size; + unsigned char translation_size; + char nop_size; + unsigned char pad; +}; + +extern VMI_UINT8 hypervisor_found; +extern VMI_UINT8 hypervisor_timer_found; +extern struct vmi_annotation __vmi_annotation[], __vmi_annotation_end[]; + +/* VMI function prototypes */ +#define VMICALL extern __attribute__((regparm(3))) + +VMICALL void...
2007 Apr 18
3
[RFC, PATCH 4/24] i386 Vmi inline implementation
...:: input ); \ + asm volatile ( "" : output :: clobber ); \ +} while (0) + +#define VMI_NO_INPUT +#define VMI_NO_OUTPUT + +struct vmi_annotation { + unsigned long vmi_call; + unsigned char *nativeEIP; + unsigned char *translationEIP; + unsigned char native_size; + unsigned char translation_size; + char nop_size; + unsigned char pad; +}; + +extern VMI_UINT8 hypervisor_found; +extern VMI_UINT8 hypervisor_timer_found; +extern struct vmi_annotation __vmi_annotation[], __vmi_annotation_end[]; + +/* VMI function prototypes */ +#define VMICALL extern __attribute__((regparm(3))) + +VMICALL void...