commit | 082d8c5b0885c375206841ae78c1fb631395d4c2 | [log] [tgz] |
---|---|---|
author | Martin Lindsay <mlindsay@google.com> | Wed Jul 08 00:47:53 2020 +0000 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Wed Jul 08 00:47:53 2020 +0000 |
tree | 5d42471edace859e9d56c7eeaada80ccce7ee089 | |
parent | aa150173de50716c6edf46040568434cb618c4b3 [diff] |
[blobfs] Make next_node undefined at end of list. The documentation in format.h and the public markdown said that next_node should be zero in the case of the last node in the linked list. The header file specified that node zero should be reserved, making this a safe "null" node, however the documentation didn't include this detail and we never enforced it anywhere in our code. This change updates the documentation to match our implementation where we determine the end of the list based on the extent count in the inode and derive no meaning from the next_node at the end of a list. We instead purposely populate next_node there as 0xFFFFFFFF only as an implementation detail to trigger crashes with high probability when the pointer is erroneously followed. Bug: 53860 Change-Id: I6c697f5c0a5a4bb5be464a1a6c329dcc4cc6ab56 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/402887 Reviewed-by: Jared Bhatti <jaredb@google.com> Reviewed-by: James Sullivan <jfsulliv@google.com> Commit-Queue: Martin Lindsay <mlindsay@google.com> Testability-Review: James Sullivan <jfsulliv@google.com>
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
See Getting Started.
See fuchsia.dev.