commit | 0f6250613960bb6dc76322194601073e60396e56 | [log] [tgz] |
---|---|---|
author | Yi-Yo Chiang <yochiang@google.com> | Tue Nov 02 11:03:52 2021 +0800 |
committer | Yi-Yo Chiang <yochiang@google.com> | Tue Nov 02 11:38:31 2021 +0800 |
tree | 3bbe81d9d0c95281a953be22848731b70b1c0aa7 | |
parent | cab12f8ae2a999d97190a2c4adaa3158ef532118 [diff] |
libfiemap: array boundary check for fiemap.fm_extents[] Ensure we have at least one element before we try to access the last element. Else the array index of the last element may underflow, 0ull - 1 == ~0ull == UINT64_MAX. Bug: 204536075 Test: atest fiemap_writer_test Change-Id: Ic390d108bf789cfe136fb5dfe2983f3c7d6f7e48