# std.debug: fix ConfigurableTrace.dump OOB · gitcafe/zig

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

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

Visibility: public

Requested revision: 87d8cb19e4eed905b93d39554ea9a2a1012f6668

Requested commit: 87d8cb19e4eed905b93d39554ea9a2a1012f6668

Commit: 87d8cb19e4eed905b93d39554ea9a2a1012f6668

Tree: 31a205c59129b7308b20d0ad62a8b77cdb799d92

Author: FlandreScarlet

Committer: GitHub

## Message

```
std.debug: fix ConfigurableTrace.dump OOB

The for-loop in dump() would index out of bounds if `t.index` is greater
than size, because `end` is the maximum of `t.index` and `size` rather than the
minimum.
```

## Parents

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

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