2012-12-07 10:18:38 -05:00
|
|
|
$OpenBSD: patch-src_table_c,v 1.2 2012/12/07 15:18:38 ajacoutot Exp $
|
2012-05-29 16:31:40 -04:00
|
|
|
|
|
|
|
From feeee4b5832b17641e505b7083e0d299fdae318e Mon Sep 17 00:00:00 2001
|
|
|
|
From: Christian Persch <chpe@gnome.org>
|
|
|
|
Date: Sat, 19 May 2012 19:36:09 +0200
|
|
|
|
Subject: [PATCH] emulation: Limit integer arguments to 65535
|
|
|
|
|
|
|
|
--- src/table.c.orig Tue Aug 16 23:52:48 2011
|
|
|
|
+++ src/table.c Tue May 29 22:22:59 2012
|
|
|
|
@@ -550,7 +550,7 @@ _vte_table_extract_numbers(GValueArray **array,
|
|
|
|
if (G_UNLIKELY (*array == NULL)) {
|
|
|
|
*array = g_value_array_new(1);
|
|
|
|
}
|
|
|
|
- g_value_set_long(&value, total);
|
|
|
|
+ g_value_set_long(&value, CLAMP (total, 0, G_MAXUSHORT));
|
|
|
|
g_value_array_append(*array, &value);
|
|
|
|
} while (i++ < arginfo->length);
|
|
|
|
g_value_unset(&value);
|