OSDN Git Service

Don't search off the end of the index for bad Olson ids.
authorElliott Hughes <enh@google.com>
Thu, 14 Mar 2013 21:38:08 +0000 (14:38 -0700)
committerElliott Hughes <enh@google.com>
Thu, 14 Mar 2013 21:38:08 +0000 (14:38 -0700)
commite0175ca7e440a87e9d03f249fc8f210063df7908
tree982e64580d19fc846cd7f2a1fa1dee2fbe2274d8
parentec706c24acb4d1db6a583a57b76adfb9250d39eb
Don't search off the end of the index for bad Olson ids.

In the old code, the index was a file to itself, so it made sense to
read until you hit the end of the file. In the new code, the index is
followed by hundreds of KiB of data, so we need to just search the
index.

Bug: 8368791
Change-Id: Icf5f8b5516cf3a93679fa849c9f6cd1cb100e0f1
libc/tzcode/localtime.c
tests/Android.mk
tests/time_test.cpp [new file with mode: 0644]