emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subtle bug in intervals code


From: Eli Zaretskii
Subject: Re: Subtle bug in intervals code
Date: Wed, 18 Jul 2012 21:33:47 +0300

> Date: Wed, 18 Jul 2012 15:48:08 +0400
> From: Dmitry Antipov <address@hidden>
> 
> Commit 109118 (by me) introduces the following change in src/intervals.c, 
> function delete_interval:
> 
> @@ -1262,8 +1198,7 @@
>     register INTERVAL parent;
>     ptrdiff_t amt = LENGTH (i);
> 
> -  if (amt > 0)                       /* Only used on zero-length intervals 
> now.  */
> -    abort ();
> +  eassert (amt == 0);                /* Only used on zero-length intervals 
> now.  */
> 
>     if (ROOT_INTERVAL_P (i))
>       {
> 
> Now this eassert traps at interval with negative length. I'm not familiar with
> this subsystem enough to find (possible) bug quickly, so any help is 
> appreciated.

Do you have an easy test case that triggers this?  The only ones
posted are to bootstrap, which is not my idea of an easy test case...



reply via email to

[Prev in Thread] Current Thread [Next in Thread]