commit | 57c6f69b17429860b634f30a0341ec276ee4cddd | [log] [tgz] |
---|---|---|
author | Pattara Teerapong <pteerapong@google.com> | Thu Jun 20 09:58:58 2024 +0000 |
committer | Pattara Teerapong <pteerapong@google.com> | Thu Jun 20 09:58:58 2024 +0000 |
tree | a0e9cc97591c4b9b5d385d8b37d31845d00a0eed | |
parent | 893f3b081f9aeb09cdf7ff084135ea8df8792f60 [diff] |
libfmq: Fix double closing fd in rust binding In convertHandle, dup the provided fd before putting it into ScopedFileDescriptor. In the case of MessageQueue::from_desc, the fd is already owned by NativeHandle so it will be closed twice without dup. Bug: 348328714 Change-Id: I4785b2c5f6883984ed4d1822ba64db74c17a1892 Test: atest --host fmq_unit_tests