[Rd] Segfault when parsing UTF-8 text with srcrefs

Hadley Wickham h@w|ckh@m @end|ng |rom gm@||@com
Tue May 28 19:35:10 CEST 2024


Hi all,

When I run the following code, R segfaults:

text <- "×"
srcfile <- srcfilecopy("test.r", text)
parse(textConnection(text), srcfile = srcfile)

It doesn't segfault if text is ASCII, or it's not wrapped in
textConnection, or srcfile isn't set.

Hadley

-- 
http://hadley.nz

	[[alternative HTML version deleted]]



More information about the R-devel mailing list