resolve merge conflicts of a47780b to lmp-dev

Test: test_zipfile with known bad files.

Change-Id: I25dde73c9b94d253c8017e441e89cb7339907c7f