Skip to content
Snippets Groups Projects
Commit dca79854 authored by Botond Baranyi's avatar Botond Baranyi
Browse files

Bitstrings and hexstrings now clear unused bits after JSON decoding (bug 560937)


Change-Id: Id5292da9b7ac6672c6a88aa9b44ef7946b157e60
Signed-off-by: default avatarBotond Baranyi <botond.baranyi@ericsson.com>
parent ccf39701
No related branches found
No related tags found
No related merge requests found
......@@ -1253,6 +1253,7 @@ int BITSTRING::JSON_decode(const TTCN_Typedescriptor_t& p_td, JSON_Tokenizer& p_
++bit_index;
}
}
clear_unused_bits();
}
} else {
error = TRUE;
......
......@@ -1132,6 +1132,7 @@ int HEXSTRING::JSON_decode(const TTCN_Typedescriptor_t& p_td, JSON_Tokenizer& p_
set_nibble(nibble_index, char_to_hexdigit(value[i]));
++nibble_index;
}
clear_unused_nibble();
}
} else {
error = TRUE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment