kspearrin / kspearrin/BerTlv.NET
TLV String not working properly
- Dominant language
- C#
- Stars
- 28
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
HI I have a problem with a particular Strigng Hex. I tested the Hex String on a thirdparty webpage and had result, but with the library had the next message error.
The TLV String:
78795C185F605F615F625F635F645F6A5F215F225F235F7D5F7B5F7C5F600834353936393633305F6101355F620556494C43415F63075A4150415441205F64114B4154484552494E452043594E544849415F6A01465F21063134303133325F22063035303438365F2304202409055F7D005F7B005F7C041900010100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
The app that I testestd the String:
http://www.emvlab.org/tlvutils/
The Exception:
Message = "Index was outside the bounds of the array."
StackTrace = " at BerTlv.Tlv.ParseTlv(Byte[] rawTlv, ICollection`1 result)\r\n at BerTlv.Tlv.ParseTlv(Byte[] tlv)\r\n at BerTlv.Tlv.ParseTlv(String tlv)\r\n at PCSC.DNIe.Logic.DNIe.SetPersonalData(Response response) in D:\\TFS\\TFS_Outlook_jdp\\DNIe\\PCSC.DNIe\\...
TargetSite = {Void ParseTlv(Byte[], System.Collections.Generic.ICollection`1[BerTlv.Tlv])}
InvocationFlags = INVOCATION_FLAGS_INITIALIZED | INVOCATION_FLAGS_NEED_SECURITY
Thanks.
Greeting.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at BerTlv.Tlv.ParseTlv(Byte[]) and reproduce the reported exception with the TLV string from the issue. Trace which length or index causes the bounds failure, then identify the expected parsing result before deciding what a regression test should verify.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100