mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-24 23:23:58 +00:00
UserspaceEmulator: Extra format arguments in MallocTracker, found by Coverity
This commit is contained in:
parent
5a3cc2da8b
commit
4ca493a86a
Notes:
sideshowbarker
2024-07-19 03:30:40 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/4ca493a86a0 Pull-request: https://github.com/SerenityOS/serenity/pull/3184 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/bugaevc
1 changed files with 2 additions and 2 deletions
|
@ -138,7 +138,7 @@ void MallocTracer::audit_read(FlatPtr address, size_t size)
|
|||
Emulator::the().dump_backtrace();
|
||||
report("==%d== Address is %zu byte(s) into block of size %zu, allocated at:\n", getpid(), offset_into_mallocation, mallocation->size);
|
||||
Emulator::the().dump_backtrace(mallocation->malloc_backtrace);
|
||||
report("==%d== Later freed at:\n", getpid(), offset_into_mallocation, mallocation->size);
|
||||
report("==%d== Later freed at:\n", getpid());
|
||||
Emulator::the().dump_backtrace(mallocation->free_backtrace);
|
||||
return;
|
||||
}
|
||||
|
@ -173,7 +173,7 @@ void MallocTracer::audit_write(FlatPtr address, size_t size)
|
|||
Emulator::the().dump_backtrace();
|
||||
report("==%d== Address is %zu byte(s) into block of size %zu, allocated at:\n", getpid(), offset_into_mallocation, mallocation->size);
|
||||
Emulator::the().dump_backtrace(mallocation->malloc_backtrace);
|
||||
report("==%d== Later freed at:\n", getpid(), offset_into_mallocation, mallocation->size);
|
||||
report("==%d== Later freed at:\n", getpid());
|
||||
Emulator::the().dump_backtrace(mallocation->free_backtrace);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue