[gnome-desktop] Ensure EDID is at least 128 bytes and a multiple of 128 bytes
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop] Ensure EDID is at least 128 bytes and a multiple of 128 bytes
- Date: Tue, 30 Jul 2013 09:38:04 +0000 (UTC)
commit 80b400b717bc556fcd42f93b297410d3c4f56631
Author: Richard Hughes <richard hughsie com>
Date: Tue Jul 30 10:37:50 2013 +0100
Ensure EDID is at least 128 bytes and a multiple of 128 bytes
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=956772
libgnome-desktop/gnome-rr.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgnome-desktop/gnome-rr.c b/libgnome-desktop/gnome-rr.c
index c59d142..da447d7 100644
--- a/libgnome-desktop/gnome-rr.c
+++ b/libgnome-desktop/gnome-rr.c
@@ -1475,7 +1475,7 @@ read_edid_data (GnomeRROutput *output, gsize *len)
if (result)
{
- if (*len % 128 == 0)
+ if (*len > 0 && *len % 128 == 0)
return result;
else
g_free (result);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]