commit | 88805d55c555ad04acfcb7048074d3d58b307f50 | [log] [tgz] |
---|---|---|
author | Alan Stokes <alanstokes@google.com> | Fri Dec 16 16:07:33 2022 +0000 |
committer | Alan Stokes <alanstokes@google.com> | Fri Dec 16 16:53:45 2022 +0000 |
tree | 6860bb8c15a47126283da2fdf536519bd6a0120e | |
parent | e9d6cfb333cb4b9bd8013ddb5b668ad113e7c745 [diff] |
Native API fixes Port is always 32 bits, move it to uint32_t. Add _Nullable / _Nonnull annotations in the headers. That initially triggered a warning because we deliberately pass null to the getDiceAttestation* functions to get the size needed. Which led me to notice that our Rust code technically had undefined behavior, because a null pointer is never valid even for size 0. Added a guard for that, and documented that null is only allowed for size 0. Bug: 262415211 Test: atest MicrodroidTests Change-Id: I44bb2946989f7254e581d885542b41399c3ee059
This repository contains userspace services related to running virtual machines on Android, especially protected virtual machines. See the getting started documentation and Microdroid README for more information.