1
0
Fork 0

*** empty log message ***

This commit is contained in:
bagyenda 2009-02-09 08:48:56 +00:00
parent c96438a274
commit af393b2afe
4 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,5 @@
2009-02-09 P. A. Bagyenda <bagyenda@dsmagic.com>
* Fix crash when message format is invalid
2009-02-03 P. A. Bagyenda <bagyenda@dsmagic.com> 2009-02-03 P. A. Bagyenda <bagyenda@dsmagic.com>
* Fix: url replacement in SMIL * Fix: url replacement in SMIL
* Fix: sendmms port setup bug in mmsbox * Fix: sendmms port setup bug in mmsbox

View File

@ -108,6 +108,14 @@ static int decode_multipart(ParseContext *context, List *body)
hlen = parse_get_uintvar(context); hlen = parse_get_uintvar(context);
dlen = parse_get_uintvar(context); dlen = parse_get_uintvar(context);
if (hlen < 0 || dlen < 0) {
int pleft = parse_octets_left(context);
mms_warning(0, NULL, NULL, "Parse error reading mime body [hlen=%d, dlen=%d, left=%d]!",
hlen,dlen, pleft);
mime_entity_destroy(x);
return -1;
}
parse_limit(context, hlen); parse_limit(context, hlen);
hs = parse_get_octets(context, parse_octets_left(context)); hs = parse_get_octets(context, parse_octets_left(context));

View File

@ -35,7 +35,6 @@ int main(int argc, char *argv[])
{ {
int cfidx; int cfidx;
Octstr *fname; Octstr *fname;
long r_thread = 0; long r_thread = 0;
mms_lib_init(); mms_lib_init();

View File

@ -78,7 +78,7 @@ static void do_mm1_push(Octstr *rcpt_to, int isphonenum, MmsEnvelope *e, MmsMsg
octstr_append_char(pduhdr, 0xbe); /* content type. */ octstr_append_char(pduhdr, 0xbe); /* content type. */
#else #else
octstr_append_char(pduhdr, octstr_append_char(pduhdr,
1 + 1 + sizeof "application/vnd.wap.mms-message"); /*header length. */ 1 + 1 + strlen("application/vnd.wap.mms-message") + 1); /*header length. */
octstr_append_cstr(pduhdr, "application/vnd.wap.mms-message"); octstr_append_cstr(pduhdr, "application/vnd.wap.mms-message");
octstr_append_char(pduhdr, 0x0); /* string terminator. */ octstr_append_char(pduhdr, 0x0); /* string terminator. */
#endif #endif