[PATCH 5.4 13/15] macintosh/adb: fix oob read in do_adb_query() function