mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +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
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ int main(int argc, char** argv)
|
||||||
if (mode == ReadFromFreedMemory || mode == TestAllCrashTypes) {
|
if (mode == ReadFromFreedMemory || mode == TestAllCrashTypes) {
|
||||||
Crash("Read from freed memory", []() {
|
Crash("Read from freed memory", []() {
|
||||||
auto* uninitialized_memory = (volatile u32**)malloc(1024);
|
auto* uninitialized_memory = (volatile u32**)malloc(1024);
|
||||||
if (true)
|
if (!uninitialized_memory)
|
||||||
return Crash::Failure::UnexpectedError;
|
return Crash::Failure::UnexpectedError;
|
||||||
|
|
||||||
free(uninitialized_memory);
|
free(uninitialized_memory);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue