Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/emacs/23.4: 09_all_xgselect-infloop.patch
Date: Mon, 30 Jan 2012 23:24:55
Message-Id: 20120130232443.CD3032004B@flycatcher.gentoo.org
1 ulm 12/01/30 23:24:43
2
3 Added: 09_all_xgselect-infloop.patch
4 Log:
5 Fix infinite loop in xg_select() with glib >= 2.31, bug 401199.
6
7 Revision Changes Path
8 1.1 src/patchsets/emacs/23.4/09_all_xgselect-infloop.patch
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/emacs/23.4/09_all_xgselect-infloop.patch?rev=1.1&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/emacs/23.4/09_all_xgselect-infloop.patch?rev=1.1&content-type=text/plain
12
13 Index: 09_all_xgselect-infloop.patch
14 ===================================================================
15 http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9754
16 https://bugs.gentoo.org/401199
17 Fix infinite loop in xg_select() with glib >= 2.31.
18
19 --- emacs-23.4-orig/src/xgselect.c
20 +++ emacs-23.4/src/xgselect.c
21 @@ -55,6 +55,8 @@ xg_select (max_fds, rfds, wfds, efds, ti
22 do {
23 if (n_gfds > gfds_size)
24 {
25 + if (gfds_size == 0)
26 + gfds_size = 128;
27 while (n_gfds > gfds_size)
28 gfds_size *= 2;
29 xfree (gfds);