Re: segfault in hostnames_matching

2023-03-27 Thread Chet Ramey
On 3/27/23 12:49 PM, Grisha Levit wrote: another size_t issue Thanks for the reports. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

segfault in hostnames_matching

2023-03-27 Thread Grisha Levit
another size_t issue diff --git a/bashline.c b/bashline.c index 0047caef..9df26d2e 100644 --- a/bashline.c +++ b/bashline.c @@ -919,7 +919,7 @@ hostnames_matching (const char *text) continue; /* OK, it matches. Add it to the list. */ - if (nmatch >= (rsize - 1)) + if ((n