Fix invalid memory access in DefaultVehicleHal.

We should not return a pointer that points to a local variable. Use
copy instead.

Flag: EXEMPT HAL
Test: atest DefaultVehicleHalTest
Bug: 386897768
Change-Id: I61e086b41d64ffde2555d7442009854977c152f9
2 files changed