Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 859532 Details for
Bug 903860
app-editors/pluma crashes on hardened / FORTIFY_SOURCE=3
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
out-of-bounds-fix-patch
1.26-Fix-out-of-bounds-write.patch (text/plain), 964 bytes, created by
Alexander van der Meij
on 2023-04-05 08:20:28 UTC
(
hide
)
Description:
out-of-bounds-fix-patch
Filename:
MIME Type:
Creator:
Alexander van der Meij
Created:
2023-04-05 08:20:28 UTC
Size:
964 bytes
patch
obsolete
>From 413f9e46eb73e5ebec9a05b5669df8b927126596 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Bal=C3=A1zs=20Dura-Kov=C3=A1cs?= <balping314@gmail.com> >Date: Thu, 18 Aug 2022 17:44:41 +0200 >Subject: [PATCH] Fix out-of-bounds write > >Closes https://github.com/mate-desktop/pluma/issues/664 > >The size of tempfont was one byte too short, so strcpy performed an out-of-bounds write of the terminating 0. >--- > pluma/pluma-window.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/pluma/pluma-window.c b/pluma/pluma-window.c >index b86c0b6..a8e4be8 100644 >--- a/pluma/pluma-window.c >+++ b/pluma/pluma-window.c >@@ -328,7 +328,7 @@ pluma_window_key_press_event (GtkWidget *widget, > g_strcanon (tempsize, "1234567890", '\0'); > g_strreverse (tempsize); > >- gchar tempfont [strlen (font)]; >+ gchar tempfont [strlen (font) + 1]; > strcpy (tempfont, font); > tempfont [strlen (font) - strlen (tempsize)] = 0; > >-- >2.39.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 903860
:
859531
| 859532 |
859533