Skip to content

misprint fix in libpff_record_entry_get_multi_value #130

@Agile86

Description

@Agile86

We need to copy uint32 from array to value, not vice versa.

diff --git a/libpff/libpff_record_entry.c b/libpff/libpff_record_entry.c
index 9632eff..f9f9fd9 100644
--- a/libpff/libpff_record_entry.c
+++ b/libpff/libpff_record_entry.c
@@ -2710,7 +2710,7 @@ int libpff_record_entry_get_multi_value(
                        case LIBPFF_VALUE_TYPE_MULTI_VALUE_BINARY_DATA:
                                /* The first 4 bytes contain the number of values
                                 */
-                               byte_stream_copy_from_uint32_little_endian(
+                               byte_stream_copy_to_uint32_little_endian(
                                 internal_record_entry->value_data,
                                 internal_multi_value->number_of_values );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions