Commit 06cdcf14 authored by Gergo Ujhelyi's avatar Gergo Ujhelyi
Browse files

fixing: Bug 572603 Raw decoder bug, record of


Signed-off-by: Gergo Ujhelyi's avatarGergo Ujhelyi <ujhelyi.gergo@ericsson.com>
parent 73577aab
......@@ -1545,9 +1545,14 @@ public final class RecordOfGenerator {
source.append("\t\t\t\tif (sel_field == -1) {\n");
source.append("\t\t\t\t\tsel_field = p_td.raw.fieldlength;\n");
source.append("\t\t\t\t}\n");
source.append("\t\t\t\tstart_of_field = buff.get_pos_bit();\n");
source.append("\t\t\t\tfor (a = 0; a < sel_field; a++) {\n");
source.append("\t\t\t\t\tdecoded_field_length = get_at(a + start_field).RAW_decode(p_td.oftype_descr, buff, limit, top_bit_ord, true, -1, true, null);\n");
source.append("\t\t\t\t\tif (decoded_field_length < 0) {\n");
source.append("\t\t\t\t\t\twhile(a >= 0) {\n");
source.append("\t\t\t\t\t\t\tvalueElements.remove(a + start_field);\n");
source.append("\t\t\t\t\t\t\ta--;\n");
source.append("\t\t\t\t\t\t}\n");
source.append("\t\t\t\t\t\treturn decoded_field_length;\n");
source.append("\t\t\t\t\t}\n");
source.append("\t\t\t\t\tdecoded_length += decoded_field_length;\n");
......
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