OSDN Git Service

AAPT2: Fix parsing ResTable_type
authorAdam Lesinski <adamlesinski@google.com>
Fri, 3 Mar 2017 21:50:21 +0000 (13:50 -0800)
committerAdam Lesinski <adamlesinski@google.com>
Fri, 3 Mar 2017 22:01:09 +0000 (14:01 -0800)
commit136fd0764faf7a588b4a1b479d7a8cc6fe18fcc6
tree91f7316861e5d879a627bd00578170791889c528
parent485c0feea53199b1d43db8782073044c846424c4
AAPT2: Fix parsing ResTable_type

ResTable_type's size changes due to it containing
ResTable_config. Make sure we check for the minimum size
required to read it.

Bug: 35861796
Test: Manual (don't have an integration test harness setup yet)
Change-Id: Ifb0cd1d732625f59835c8ed0449adb78129636de
libs/androidfw/LoadedArsc.cpp
libs/androidfw/include/androidfw/Chunk.h
libs/androidfw/include/androidfw/ResourceTypes.h
tools/aapt2/unflatten/BinaryResourceParser.cpp
tools/aapt2/unflatten/ResChunkPullParser.h