[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15344: 24.3; Crash when yanking in c-mode
From: |
Daniel Colascione |
Subject: |
bug#15344: 24.3; Crash when yanking in c-mode |
Date: |
Mon, 13 Jan 2014 05:59:33 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
On 01/13/2014 05:39 AM, Thien-Thi Nguyen wrote:
Here is a script to make debugging easier:
Thanks. Does this patch have any unwanted side effects? It seems
perfectly reasonable to me that we could reach the end of the interval
tree without finding anything to modify or going past our bound.
=== modified file 'src/textprop.c'
--- src/textprop.c 2014-01-01 07:43:34 +0000
+++ src/textprop.c 2014-01-13 13:56:18 +0000
@@ -1741,6 +1741,8 @@
}
len -= LENGTH (i);
i = next_interval (i);
+ if (!i)
+ return Qnil;
}
}