From 82abdeb0209d841f23e8792523e3fc971f01d18f Mon Sep 17 00:00:00 2001 From: Alexander Pyhalov Date: Fri, 16 Sep 2016 23:45:43 +0300 Subject: eom: Out-of-bounds write when passing invalid UTF-8 to GMarkup --- src/eom-error-message-area.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/eom-error-message-area.c b/src/eom-error-message-area.c index 51f2ba2..5602702 100644 --- a/src/eom-error-message-area.c +++ b/src/eom-error-message-area.c @@ -28,6 +28,7 @@ #include "eom-error-message-area.h" #include "eom-image.h" +#include "eom-util.h" #include #include @@ -167,7 +168,7 @@ eom_image_load_error_message_area_new (const gchar *caption, error_message = g_strdup_printf (_("Could not load image '%s'."), pango_escaped_caption); - message_details = g_strdup (error->message); + message_details = eom_util_make_valid_utf8 (error->message); message_area = create_error_message_area (error_message, message_details, -- cgit v1.2.1