pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
not exactly the same (Re: ruby 3.4.x Segfaults issue
Not exactly the same:
10.99.12
| #2 0x00007dc2063bb0d9 in pm_parse_stream_read.constprop () from /usr/pkg/lib/libruby34.so.34
9.3
| #2 0x000075da3f0c06db in pm_parse_stream_read.isra () from /usr/pkg/lib/libruby34.so.34
--
Makoto Fujiwara
mef%NetBSD.org@localhost
makoto%if.t.u-tokyo.ac.jp@localhost
./ruby-3.4.2/prism/prism.c:
22612 /**
22613 * Read into the stream until the gets callback returns false. If the last read
22614 * line from the stream matches an __END__ marker, then halt and return false,
22615 * otherwise return true.
22616 */
22617 static bool
22618 pm_parse_stream_read(pm_buffer_t *buffer, void *stream, pm_parse_stream_fgets_t *fgets) {
22619 #define LINE_SIZE 4096
22620 char line[LINE_SIZE];
22621
22622 while (memset(line, '\n', LINE_SIZE), fgets(line, LINE_SIZE, stream) != NULL) {
22623 size_t length = LINE_SIZE;
22624 while (length > 0 && line[length - 1] == '\n') length--;
22625
22626 if (length == LINE_SIZE) {
Home |
Main Index |
Thread Index |
Old Index