Skip to content

KlvTsDecoder.AddPacket can throw exception #1

@fredow68

Description

@fredow68

Hello,

Thank you for your work and to share it. Project VisionKlv help me a lot to understand your api !

For my job, i start from commit n°f597e5409c95e4a6fb79385fb4f5d417915d70d9 (nugget package v1.0.10 i suppose). In some circumstances, i have an exception when i use method AddPacket from the KlvTsDecoder. I fix it in object UniversalLabelKlvEntity, line 56 by replacing the line with Buffer.BlockCopy(data, dataPos, Value, 0, Math.Min(data.Length - dataPos, length));.
I don't know if it's the right solution, but it works for me. And i don't if i can push on your repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions