pkgsrc-Users archive

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

Re: 10.99.12 and 9.3 both issue (Re: ruby 3.4.x Segfaults issue



On Sun, Mar 02, 2025 at 12:57:14AM +0900, Takahiro Kambe wrote:
> Line 22617 from prism/prism.c:
> 
> static bool
> pm_parse_stream_read(pm_buffer_t *buffer, void *stream, pm_parse_stream_fgets_t *fgets) {
> #define LINE_SIZE 4096
>     char line[LINE_SIZE];
> 
>     while (memset(line, '\n', LINE_SIZE), fgets(line, LINE_SIZE, stream) != NULL) {


Patch it to

#undef fgets

or rename the function pointer name.

Martin


Home | Main Index | Thread Index | Old Index