OSDN Git Service

Fix regoff_t for LP32 and _FILE_OFFSET_BITS=64.
authorElliott Hughes <enh@google.com>
Thu, 27 Aug 2015 21:48:32 +0000 (14:48 -0700)
committerMichael Bestas <mikeioannina@gmail.com>
Sat, 7 Nov 2015 14:46:15 +0000 (16:46 +0200)
commit5ffc0c975693345ce0eb829b9faa3c50173730ed
tree1ea5746acd19a07b65c7d418c448dd9fe8889b09
parent607f747e59a3dea20ed324419f8afc611fd66ee1
Fix regoff_t for LP32 and _FILE_OFFSET_BITS=64.

bionic is built without _FILE_OFFSET_BITS=64, so internally regoff_t
was 32-bit on LP32, but code compiled with _FILE_OFFSET_BITS would
expect rm_so and rm_eo in struct regmatch_t to be 64-bit, leading to
confusion.

Bug: http://b/23566443
Change-Id: Iae92fa545104068e4f64ce1977f5ec616859638c
libc/include/regex.h
tests/regex_test.cpp