[gnome-color-manager] Fix a potential crash if dispcal started giving unexpected data
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] Fix a potential crash if dispcal started giving unexpected data
- Date: Fri, 17 Jan 2014 19:33:28 +0000 (UTC)
commit d9fc4c7f07a100d2342437c1cc3bca3b35579bb2
Author: Richard Hughes <richard hughsie com>
Date: Mon Jan 13 12:21:31 2014 +0000
Fix a potential crash if dispcal started giving unexpected data
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=958082
src/gcm-calibrate-argyll.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-calibrate-argyll.c b/src/gcm-calibrate-argyll.c
index f99a7eb..8ab2a59 100644
--- a/src/gcm-calibrate-argyll.c
+++ b/src/gcm-calibrate-argyll.c
@@ -212,6 +212,8 @@ gcm_calibrate_argyll_get_display (const gchar *output_name,
"failed to match display as RandR is faulty");
goto out;
}
+ if (strlen (split[i]) < 27)
+ continue;
name = g_strdup (split[i]);
g_strdelimit (name, " ", '\0');
if (g_strcmp0 (output_name, &name[26]) == 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]