Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misprint fix in libpff_record_entry_get_multi_value #130

Open
Agile86 opened this issue Jun 7, 2024 · 0 comments
Open

misprint fix in libpff_record_entry_get_multi_value #130

Agile86 opened this issue Jun 7, 2024 · 0 comments

Comments

@Agile86
Copy link

Agile86 commented Jun 7, 2024

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 );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant