Skip to content

In C#. A bug where the array count must be a multiple of 4 #8759

@KanouAo

Description

@KanouAo
Image Image Image Image - In Table.cs , the __vector_as_array() method calls __vector_len() to get the number of elements in the vector - This element count is then directly passed as lenInBytes to ByteBuffer.ToArray(pos, len) - In ByteBuffer.ToArray() , the ConvertBytesToTs() method checks if lenInBytes is a multiple of the size of type T - When retrieving an int[] with 3 elements, the element count (3) is passed instead of the actual byte count (12), causing the alignment check to fail

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