[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#61704: 29.0.60; Crash in get_narrowed_begv
From: |
Eli Zaretskii |
Subject: |
bug#61704: 29.0.60; Crash in get_narrowed_begv |
Date: |
Wed, 22 Feb 2023 15:47:05 +0200 |
> Date: Wed, 22 Feb 2023 13:40:41 +0000
> From: Gregory Heytings <gregory@heytings.org>
> cc: Eli Zaretskii <eliz@gnu.org>, 61704@debbugs.gnu.org
>
>
> >>> How can len possibly be 0 at that point? It is (in short)
> >
> > Because the pixel width of W is less than its frame's column width. The
> > division performed window_body_width is truncating, i.e:
> >
> > 24 / 25 = 0
> >
> > and I suspect the actual width being divded at that point is less than
> > w->pixel_width, since that window had fringes.
> >
>
> In that case it's a bug in window_body_width I guess, which should do
>
> /* Don't return a non-positive value. */
> return max (width / denom, 1);
I won't object to that, if Martin agrees. But the protection I
installed should IMO remain there, just in case.
- bug#61704: 29.0.60; Crash in get_narrowed_begv, Po Lu, 2023/02/22
- bug#61704: 29.0.60; Crash in get_narrowed_begv, Gregory Heytings, 2023/02/22
- bug#61704: 29.0.60; Crash in get_narrowed_begv, Eli Zaretskii, 2023/02/22
- bug#61704: 29.0.60; Crash in get_narrowed_begv, Po Lu, 2023/02/22
- bug#61704: 29.0.60; Crash in get_narrowed_begv, Gregory Heytings, 2023/02/22
- bug#61704: 29.0.60; Crash in get_narrowed_begv,
Eli Zaretskii <=
- bug#61704: 29.0.60; Crash in get_narrowed_begv, Po Lu, 2023/02/22
- bug#61704: 29.0.60; Crash in get_narrowed_begv, Gregory Heytings, 2023/02/22
bug#61704: 29.0.60; Crash in get_narrowed_begv, Eli Zaretskii, 2023/02/22