[PATCH 4/5] dwrite: Validate 'gasp' data before accessing it.