OSDN Git Service

Don't update checksum if data ptr is null.
authorJeff Hao <jeffhao@google.com>
Tue, 24 May 2016 02:17:04 +0000 (19:17 -0700)
committerBrian Carlstrom <bdc@google.com>
Tue, 24 May 2016 18:25:50 +0000 (11:25 -0700)
commit2c6b49498e2f084ce217fcd3327103eadc1e0c37
treeda4efd6b221f919864b7dae05f517353b0c466e2
parent67e44c0aef679038eda36b6155a8a63c85a521cc
Don't update checksum if data ptr is null.

Passing a nullptr to adler32 resets it to its initial value.

Bug: 28874264
Change-Id: I863fa4d489618c1c6fa579cc89fb050f4cd23760
compiler/oat_test.cc
runtime/oat.cc