$darkmode
Elektra 0.11.0
Memory Layout

Problem

mmapstorage leaks internals of the struct _Key.

Constraints

Assumptions

Considered Alternatives

Decision

Have versioning and memory layout checks¹ of cache files written by mmapstorage. The cache files get discarded if these checks fail.

Rationale

Implications

See Rationale.

Related Decisions

Notes

¹ A KeySet with known content gets written and mmapstorage checks if this KeySet was restored correctly.