mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-12-01 04:28:48 +00:00
bc144baf0e
This CL fixes a bug that was introduced by [1] where max_nesting_depth is used to prevent unbounded nesting of qcow images. When a qcow image is backed by a composite disk, the composite disk is parsed twice: (1) once before the qcow header is created, and (2) once again after the composite disk is written to the header and the header is parsed. The max_nesting_depth was set correctly for (1), but was set to 1 for (2). Since a composite disk inherently is nested, max_nesting_depth drops to 0 and it causes an error. This CL fixes the bug by respecting max_nesting_depth also for the case (2). Bug: N/A Test: launch cuttlefish [1] https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3146214 Change-Id: Ic2d30df6c76a0c1965e222960e0094fe847b1097 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3267734 Auto-Submit: Jiyong Park <jiyong@google.com> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Andrew Walbran <qwandor@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |