# std.builtin.panic\(uefi\): stack allocate panic message · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/22d964fe22f2e154640f71ef52c1ed552be518bd)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 22d964fe22f2e154640f71ef52c1ed552be518bd

Requested commit: 22d964fe22f2e154640f71ef52c1ed552be518bd

Commit: 22d964fe22f2e154640f71ef52c1ed552be518bd

Tree: 76b6ec9b97c5bc5a72fa8a247e94d57ad713f169

Author: Yusuf Bham

Committer: Veikka Tuominen

## Message

```
std.builtin.panic(uefi): stack allocate panic message

In the case that the allocator is unavailable (OOM, etc.), we can
possibly still output the panic message - so now we stack allocate the
message and copy it to the exit data for passing to boot services.

```

## Parents

- [c16aeda8a66451e77c0113b5d160413f97fc72b0](https://git.cafe/gitcafe/zig/commit/c16aeda8a66451e77c0113b5d160413f97fc72b0?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/22d964fe22f2e154640f71ef52c1ed552be518bd?format=markdown)
