Ticket Hash: | be7d99dcc2a2f082bcdb43cc02f6d636d093699b | |||
Title: | core dump while generating glob-gate for expanded syntax with trailing whitespace | |||
Status: | Open | Type: | Code_Defect | |
Severity: | Critical | Priority: | Medium | |
Subsystem: | Resolution: | Open | ||
Last Modified: | 2022-09-18 14:39:13 | |||
Version Found In: | 5.45 | |||
User Comments: | ||||
anonymous added on 2022-06-16 15:05:31:
It looks like Expect has an issue generating the glob-gate for that regexp. no core dump: core dump: Note that trailing whitespace is quite common if the regexp with expanded syntax is written like a code block inside braces across several lines, i.e. they end in newline and indentation. I assume the issue is in retglob.c:223:
The tight while-loop is safe, iff the string is 0-terminated, but afterwards: anonymous (claiming to be heinrichmartin) added on 2022-09-18 14:35:07: Maybe,
anonymous (claiming to be heinrichmartin) added on 2022-09-18 14:39:13: It looks like I accidentally set the priority while adding a comment. This should be left to the maintainers. I am setting it to Medium for now; workarounds are available. |