commit | 57c6fcbfa8134f532d5487ccf4bfc9f7bd38fff4 | [log] [tgz] |
---|---|---|
author | Steven Moreland <[email protected]> | Tue Mar 06 11:31:33 2018 -0800 |
committer | Martijn Coenen <[email protected]> | Wed Mar 07 08:11:30 2018 +0000 |
tree | 44c290df557e91473275087d13f4b0a587ee3132 | |
parent | 566c383bf83c0b66a59ae5c671ffd224b85c1c3b [diff] |
Add earlier CHECK in hidl_string hidl_string needs to be zero-terminated so that the kernel can make a copy with it and have it safely copied over to the the other process (and that process can use c_str safely). Right now, this CHECK is in parceling code for hidl_string, but moving it to setToExternal and adding additional documentation for clarity. Bug: N/A Test: TH Change-Id: I1e5f338baa5757ec541e0c54f89f64df0a9c9d61