diff options
author | Sviatoslav Peleshko <speles@mail.ua> | 2022-02-06 15:59:31 +0200 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2022-02-06 18:25:05 +0330 |
commit | 3caac65cc80f6daeeacb3aac6a29d15bde788c4b (patch) | |
tree | 950e4378f722911b9d7cfa9e31543dd747d1738e /Meta/CMake | |
parent | 46ed6303a28f24477b03f00e2b93e6f11bef5ead (diff) | |
download | serenity-3caac65cc80f6daeeacb3aac6a29d15bde788c4b.zip |
CrashReporter: Capture backtrace progress callback's arguments by value
Previously we captured them by reference, but when the deferred code
finally runs from an event loop, the references may be stale.
In that case, value and max of the progressbar are set with random
numbers.
If we were especially unlucky, the `frame_count` turned into a negative
int, and would crash at `VERIFY(min <= max)`.
Diffstat (limited to 'Meta/CMake')
0 files changed, 0 insertions, 0 deletions