summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Pyhalov <[email protected]>2016-09-16 23:45:43 +0300
committerAlexander Pyhalov <[email protected]>2016-09-16 23:45:43 +0300
commit82abdeb0209d841f23e8792523e3fc971f01d18f (patch)
treedd2dab075a1b1c4e7f955bd3483c62b92c601b0f /src
parent13644917cf59b89c1d69f56fef64b2ac4a616799 (diff)
downloadeom-82abdeb0209d841f23e8792523e3fc971f01d18f.tar.bz2
eom-82abdeb0209d841f23e8792523e3fc971f01d18f.tar.xz
eom: Out-of-bounds write when passing invalid UTF-8 to GMarkup
Diffstat (limited to 'src')
-rw-r--r--src/eom-error-message-area.c3
1 files changed, 2 insertions, 1 deletions
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 <glib.h>
#include <glib/gi18n.h>
@@ -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,