Skip to content

System.ArgumentException #8

@fenderluvr

Description

@fenderluvr

System.ArgumentException: Destination array is not long enough to copy all the items in the collection. Check array index and length.
method: com.tikumo.regis3.RegValueEntry.SetBinaryType(RegValueEntryKind kind, byte[] bytes)

else if (Kind == RegValueEntryKind.QWord)
{
try
{
Value = BitConverter.ToInt64(bytes, 0);
}
catch (Exception e)
{
Console.WriteLine(e);
throw;
}
}

Cause: Need to verify sufficient bytes are in byte array for the conversion ToInt64() to succeed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions