diff options
| author | Konstantinos Andrikopoulos <mandragore@protonmail.com> | 2024-06-09 01:42:49 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-06-13 11:46:26 +0000 |
| commit | 2a27d56f53253786439ff9ae7711fd75abd9bc6e (patch) | |
| tree | 136f28a23f143d9883d9d2e09d29ffe36da46927 /executor/executor.cc | |
| parent | 2aa5052fed5f8993afacfce02174322df0f03ec4 (diff) | |
syz-manager: check GitRevisionBase length
In the summary page of the http server, the GitRevisionBase is truncated
to 8 characters and displayed in the UI. However, when building
syzkaller through other build systems, this value is not properly set
and remains "unknown".
Unfortunately, "unknown" has only 7 letters, which causes the code that
truncates to 8 letters to panic, and the UI page can't be shown.
To fix this without doing any more invasive changes to the logic behind
how GitRevisionBase is set, we will simply check if it has more than 8
characters, and truncate it only if it does. Otherwise we will display
it in full.
Diffstat (limited to 'executor/executor.cc')
0 files changed, 0 insertions, 0 deletions
