[PATCH 5.15 28/30] macintosh/adb: fix oob read in do_adb_query() function