[PATCH 4.14 012/229] macintosh/adb: fix oob read in do_adb_query() function