Commit c122d47b authored by Slava Monich's avatar Slava Monich

[mms_codec] Fixed parsing of the absolute date header. Fixes MER#1674

parent 289c94d3
...@@ -648,13 +648,18 @@ static gboolean extract_absolute_relative_date(struct wsp_header_iter *iter, ...@@ -648,13 +648,18 @@ static gboolean extract_absolute_relative_date(struct wsp_header_iter *iter,
unsigned int i; unsigned int i;
unsigned int seconds; unsigned int seconds;
/*
* Address-present-token Encoded-string-value | Insert-address-token
* Address-present-token = <Octet 128>
* Insert-address-token = <Octet 129>
*/
if (wsp_header_iter_get_val_type(iter) != WSP_VALUE_TYPE_LONG) if (wsp_header_iter_get_val_type(iter) != WSP_VALUE_TYPE_LONG)
return FALSE; return FALSE;
p = wsp_header_iter_get_val(iter); p = wsp_header_iter_get_val(iter);
l = wsp_header_iter_get_val_len(iter); l = wsp_header_iter_get_val_len(iter);
if (l < 2 || l > 5) if (l < 2 || l > 6)
return FALSE; return FALSE;
if (p[0] != 128 && p[0] != 129) if (p[0] != 128 && p[0] != 129)
......
...@@ -58,6 +58,7 @@ int main(int argc, char* argv[]) ...@@ -58,6 +58,7 @@ int main(int argc, char* argv[])
"m-notification_1.ind", "m-notification_1.ind",
"m-notification_2.ind", "m-notification_2.ind",
"m-notification_3.ind", "m-notification_3.ind",
"m-notification_4.ind",
"m-delivery.ind", "m-delivery.ind",
"m-read-orig.ind", "m-read-orig.ind",
"m-retrieve_1.conf", "m-retrieve_1.conf",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment