Commit graph

3 commits

Author SHA1 Message Date
Kelvin Zhang
063bc24564 Fix memory leak in OTA verifier code
StartIteration() allocates some memory, which are release in
EndIteration(). Since we never called EndIteration(), these
memories are leaked.

Test: th
Bug: 233209345
Change-Id: I71c1d6eec16b8ac20c35e180f34fec50d0baec1a
2022-05-25 14:05:48 -07:00
Jacky Liu
5ffad4b00b Fix wrong key indexes in package verification logs.
If the verification fails with the key, 'continue' will be performed and
the increment of the index at the end of the loop will be skipped.
This CL fixes it.

Test: check the log and see correct key indexes.
Change-Id: I3d1b2b8b4189f5fedbf8828f5e8e0d0b2e277c6a
2021-12-29 12:51:40 +08:00
Jacky Liu
068329e977 Move package verifier from libinstall to libotautil
So it can be used by device-specific codes.

Bug: 184693830
Test: m; atest recovery_unit_test
Change-Id: I5885334c1bd04214c9cc295f2337306261a1735c
2021-12-22 23:31:08 +08:00
Renamed from install/verifier.cpp (Browse further)