1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:17:35 +00:00

LibC: Convert dbgprintf() => dbgln() in SSP handler

This commit is contained in:
Andreas Kling 2021-02-17 15:48:55 +01:00
parent 304f0fe5ee
commit 403b34d38e

View file

@ -24,6 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <AK/Format.h>
#include <AK/Types.h> #include <AK/Types.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@ -41,9 +42,9 @@ u32 __stack_chk_guard = (u32)0xc6c7c8c9;
[[noreturn]] void __stack_chk_fail() [[noreturn]] void __stack_chk_fail()
{ {
dbgprintf("Error: USERSPACE(%d) Stack protector failure, stack smashing detected!\n", getpid()); dbgln("Error: USERSPACE({}) Stack protector failure, stack smashing detected!", getpid());
if (__stdio_is_initialized) if (__stdio_is_initialized)
fprintf(stderr, "Error: Stack protector failure, stack smashing detected!\n"); warnln("Error: Stack protector failure, stack smashing detected!");
abort(); abort();
} }