Bug#941326: More detail

Gary gary at catalyst.net.nz
Thu Jul 30 04:08:44 BST 2020


This looks like a bug in readline 8.0

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff76637da in _rl_update_final () at ../display.c:2972
2972      botline_length = VIS_LLEN(_rl_vis_botlin) - woff;


Once the macros are expanded this is attempting to deference the NULL
pointer line_state_visible->lbreaks. This pointer is initialized in
rl_display, but in the password entry case the standard rl_display is
overridden and it is never initialized.

This was ok in version 7.0 as full_lines is set to zero and VIS_LLEN was
not called.
Relevant diff below.

_rl_update_final ()

2968
full_lines = 1;
}
_rl_move_vert (_rl_vis_botlin);
• woff = W_OFFSET(_rl_vis_botlin, wrap_offset);
• botline_length = VIS_LLEN(_rl_vis_botlin) - woff;
/* If we've wrapped lines, remove the final xterm line-wrap flag. */
• if (full_lines && _rl_term_autowrap && (VIS_LLEN(_rl_vis_botlin) ==
_rl_screenwidth))
• if (full_lines && _rl_term_autowrap && botline_length == _rl_screenwidth)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20200730/44504abe/attachment-0001.sig>


More information about the pkg-perl-maintainers mailing list