platform_hardware_interfaces/automotive/vehicle/2.0/default
Enrico Granata 01f5121a33 Don't set hidl_string's buffer to nullptr
Sending a null hidl_string from native code to Java is currently not
a supported operation and will cause a crash. As originally written,
shallowCopy would set a hidl_string to null as soon as a non-empty
stringValue was followed by an empty stringValue. Since freeze frames
come with a string value (the DTC) and live frames doesn't, this would
cause all diagnostics to crash while reading VehiclePropValue from parcel
immediately after dispatching a freeze frame. Fix by resetting empty strings
to a global non-null but zero length buffer.

Bug: 37435530
Test: diagnostic_injector.py
Change-Id: Ie79174dd7ab3d266f1e3addefa5ba9e2128ea9f8
2017-04-25 14:20:33 -07:00
..
common Don't set hidl_string's buffer to nullptr 2017-04-25 14:20:33 -07:00
impl/vhal_v2_0 Merge "Fix failing VTS test cases" into oc-dev am: d77a4a5585 2017-04-24 22:52:27 +00:00
tests Use IBinder to identify callbacks in VHAL 2017-04-18 14:20:11 -07:00
android.hardware.automotive.vehicle@2.0-service.rc Move hidl shims to the vendor partition. (2/2) 2017-02-13 15:03:41 -08:00
Android.mk resolve merge conflicts of 3e942409 to master 2017-04-06 09:06:49 -07:00
VehicleService.cpp Fix failing VTS test cases 2017-04-21 09:49:16 -07:00