You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BerTlvBuilder.addHex - when adding Stiring of odd length, will just process the even number of characters.
In my view either it should throw an exception/runtime exception or process all characters correctly.
The data is then skipped in HexUtil.parseHex where the size of destination buffer is integer division that doesn't work for numbers that are not power of 2.
The text was updated successfully, but these errors were encountered:
kacert
changed the title
BerTlvBuilder - addHex looses data if size not power of 2
BerTlvBuilder - addHex looses data if size not even
Oct 30, 2023
BerTlvBuilder.addHex - when adding Stiring of odd length, will just process the even number of characters.
In my view either it should throw an exception/runtime exception or process all characters correctly.
The data is then skipped in HexUtil.parseHex where the size of destination buffer is integer division that doesn't work for numbers that are not power of 2.
The text was updated successfully, but these errors were encountered: