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