commit | 98893802c24dc810b7952bec85a3c7017b26352b | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Tue Oct 24 18:12:34 2017 -0700 |
committer | Steven Moreland <smoreland@google.com> | Tue Oct 24 18:14:31 2017 -0700 |
tree | 4fdf7700e7cecbbb743d9e38645c10f9693abdff | |
parent | 3f8c4164067e0239c7f1cdd020d397ce42a9e641 [diff] |
Fix copyFrom overflow when arg is UINT32_MAX. hidl_string's copyFrom method is actually allocating size + 1 in order to allocate space for the extra '\0'. This fixes the OBO in the check to avoid overflow. Fixes: 68197287 Test: libhidl_Test Change-Id: Ic455b9931d7068fb9d19775baba2f424a08182e3