Commit fc5c00f
committed
render: build the oracle heading from the path it reports on
The four leak-oracle rows in the verbose block took their heading from
kasld_oracle_labels[], a second array keyed by the same index as
kasld_oracle_paths[]. Swapping two entries reported one source's
readability under another's heading — a wrong claim about the reader's
privilege — and nothing caught it: the gatherer test pins each path to
its own probe, not a heading to its path.
Every label was "Readable " + the path + ":", so the array carried
nothing the path did not already say, and text.c was its only reader.
The JSON and markdown blocks name the path itself alongside the same
readability bit, which is why they never consulted it and why a heading
is not a property of an oracle. The heading is now composed where it is
printed, next to the check_files rows that already work that way, and
the array is gone.1 parent ab848fe commit fc5c00f
3 files changed
Lines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | 162 | | |
166 | 163 | | |
167 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
795 | 795 | | |
796 | 796 | | |
797 | 797 | | |
798 | | - | |
799 | | - | |
800 | 798 | | |
801 | 799 | | |
802 | 800 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2590 | 2590 | | |
2591 | 2591 | | |
2592 | 2592 | | |
2593 | | - | |
2594 | | - | |
2595 | | - | |
| 2593 | + | |
| 2594 | + | |
| 2595 | + | |
| 2596 | + | |
| 2597 | + | |
| 2598 | + | |
| 2599 | + | |
2596 | 2600 | | |
2597 | 2601 | | |
2598 | 2602 | | |
| |||
0 commit comments