From db3b630dde0c6258b41d714edbade3152d36a6d2 Mon Sep 17 00:00:00 2001 From: Jacob Dahl <37091262+dakejahl@users.noreply.github.com> Date: Thu, 20 Aug 2026 19:48:57 -0600 Subject: [PATCH] fix(manifest): return the matching PAB manifest entry (#28315) board_query_manifest walked the list for mft[ndx].id == id then returned &mft[id]. On a sparse list that is the wrong row, and for PX4_MFT_T100_ETH (id 7) it is out of bounds. Signed-off-by: Jacob Dahl --- platforms/common/pab_manifest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/common/pab_manifest.c b/platforms/common/pab_manifest.c index 2005d43c56b..c8a4d2fa46e 100644 --- a/platforms/common/pab_manifest.c +++ b/platforms/common/pab_manifest.c @@ -560,7 +560,7 @@ __EXPORT px4_hw_mft_item board_query_manifest(px4_hw_mft_item_id_t id) if (boards_manifest != px4_hw_mft_list_uninitialized) for (unsigned int ndx = 0; ndx < boards_manifest->entries; ndx++) { if (boards_manifest->mft[ndx].id == id) { - rv = &boards_manifest->mft[id]; + rv = &boards_manifest->mft[ndx]; break; } }