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
1 file changed