commit | 8d61f27757a0fc1e51a3dd5b466922752f070a8e | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Apr 14 22:14:43 2017 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Apr 14 22:14:45 2017 +0000 |
tree | 4d152373102ed5a234b148d0c3fc8dc3d0b89046 | |
parent | da08de89b4bef0eb065ae4736cf68d35dba5cf06 [diff] | |
parent | 35dfaa89de65fdd8ca35ad818c24d80611c60a50 [diff] |
Merge "Fix incorrect check."
diff --git a/libc/tzcode/bionic.cpp b/libc/tzcode/bionic.cpp index fbbbd24..b486174 100644 --- a/libc/tzcode/bionic.cpp +++ b/libc/tzcode/bionic.cpp
@@ -133,7 +133,7 @@ return -1; } - if (ntohl(header.data_offset) > ntohl(header.index_offset)) { + if (ntohl(header.index_offset) > ntohl(header.data_offset)) { fprintf(stderr, "%s: invalid data and index offsets in \"%s\": %u %u\n", __FUNCTION__, path, ntohl(header.data_offset), ntohl(header.index_offset)); close(fd);