mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 13:02:28 +00:00
Crash: Woops! Remove a misplaced if (true)
I was testing with this and must have forgotten to remove it :(
This commit is contained in:
parent
8dc6fc9aca
commit
8a0ef92100
Notes:
sideshowbarker
2024-07-19 10:31:02 +09:00
Author: https://github.com/shannonbooth
Commit: 8a0ef92100
Pull-request: https://github.com/SerenityOS/serenity/pull/968
Reviewed-by: https://github.com/awesomekling ✅
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ int main(int argc, char** argv)
|
|||
if (mode == ReadFromFreedMemory || mode == TestAllCrashTypes) {
|
||||
Crash("Read from freed memory", []() {
|
||||
auto* uninitialized_memory = (volatile u32**)malloc(1024);
|
||||
if (true)
|
||||
if (!uninitialized_memory)
|
||||
return Crash::Failure::UnexpectedError;
|
||||
|
||||
free(uninitialized_memory);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue