[PATCH 5.10 21/23] macintosh/adb: fix oob read in do_adb_query() function