[PATCH 5.18 33/35] macintosh/adb: fix oob read in do_adb_query() function