<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/prism/util/pm_string.c, branch v4.0.2</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/prism] Fix dangling pointers on Windows as well</title>
<updated>2025-09-19T14:27:00+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-09-19T13:13:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b082d672533a6c0cf69c39497342cb2d5dde9f12'/>
<id>b082d672533a6c0cf69c39497342cb2d5dde9f12</id>
<content type='text'>
Share the empty source string in `pm_string_mapped_init` and
`pm_string_file_init`.

https://github.com/ruby/prism/commit/f7a9a03a92
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Share the empty source string in `pm_string_mapped_init` and
`pm_string_file_init`.

https://github.com/ruby/prism/commit/f7a9a03a92
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix dangling pointers</title>
<updated>2025-09-13T08:10:44+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-09-12T14:17:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=234f4c0bb62b394971eb1044c9c0b1f994d1d4c4'/>
<id>234f4c0bb62b394971eb1044c9c0b1f994d1d4c4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Fix a possible leak of a file descriptor</title>
<updated>2024-11-28T02:15:25+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2024-11-28T01:51:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=29e90a598a0c055c7d1a2d5e9fe279a6d30fae6a'/>
<id>29e90a598a0c055c7d1a2d5e9fe279a6d30fae6a</id>
<content type='text'>
When mmap fails for any reason, the fd must be closed.

Coverity Scan found this issue.

https://github.com/ruby/prism/commit/c06e9c400f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When mmap fails for any reason, the fd must be closed.

Coverity Scan found this issue.

https://github.com/ruby/prism/commit/c06e9c400f
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Stat file first to check directory</title>
<updated>2024-09-13T19:30:57+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-09-13T19:18:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ddbd64400199fd408d23c85f9fb0d7f742ecf9e1'/>
<id>ddbd64400199fd408d23c85f9fb0d7f742ecf9e1</id>
<content type='text'>
https://github.com/ruby/prism/commit/4ed7de537b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/4ed7de537b
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Check errno for parsing directory</title>
<updated>2024-09-12T17:43:04+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-09-11T20:49:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=38ba15beed5eb9f3a4923f9a215473965f31a7bc'/>
<id>38ba15beed5eb9f3a4923f9a215473965f31a7bc</id>
<content type='text'>
https://github.com/ruby/prism/commit/d68ea29d04
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/d68ea29d04
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] UTF-8 characters in file name</title>
<updated>2024-09-11T19:17:12+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-09-11T17:51:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d4d6f1de83628b12e4a27d273edace7762f69860'/>
<id>d4d6f1de83628b12e4a27d273edace7762f69860</id>
<content type='text'>
https://github.com/ruby/prism/commit/487f0ffe78
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/487f0ffe78
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Parse tempfile</title>
<updated>2024-09-11T15:39:22+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-09-11T14:42:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=886fc69b1cfb20141608eb1f461b93e5a5464cf9'/>
<id>886fc69b1cfb20141608eb1f461b93e5a5464cf9</id>
<content type='text'>
https://github.com/ruby/prism/commit/31154a389a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/31154a389a
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Add explicit check for PRISM_HAS_NO_FILESYSTEM</title>
<updated>2024-07-26T17:07:50+00:00</updated>
<author>
<name>Yuta Saito</name>
<email>kateinoigakukun@gmail.com</email>
</author>
<published>2024-07-20T02:59:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a65c205a1bce121821472c8e7658247a47e89047'/>
<id>a65c205a1bce121821472c8e7658247a47e89047</id>
<content type='text'>
https://github.com/ruby/prism/commit/89c22f0e6c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/89c22f0e6c
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Fallback to pm_string_file_init on platforms without memory-mapped files</title>
<updated>2024-07-26T17:07:50+00:00</updated>
<author>
<name>Yuta Saito</name>
<email>kateinoigakukun@gmail.com</email>
</author>
<published>2024-07-19T09:14:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1992bd31a55c8c1805da7dfa3d594807184cee4b'/>
<id>1992bd31a55c8c1805da7dfa3d594807184cee4b</id>
<content type='text'>
&gt; ..., and on other POSIX systems we'll use `read`.

As `pm_string_mapped_init`'s doc comment says, it should fall back to
`read(2)`-based implementation on platforms without memory-mapped files
like WASI, but it didn't. This commit fixes it by calling `pm_string_file_init`
in the fallback case.
Also `defined(_POSIX_MAPPED_FILES)` check for `read(2)`-based path is
unnecessary, and it prevents the fallback from being executed, so this
change removes it.

https://github.com/ruby/prism/commit/b3d9064b71
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
&gt; ..., and on other POSIX systems we'll use `read`.

As `pm_string_mapped_init`'s doc comment says, it should fall back to
`read(2)`-based implementation on platforms without memory-mapped files
like WASI, but it didn't. This commit fixes it by calling `pm_string_file_init`
in the fallback case.
Also `defined(_POSIX_MAPPED_FILES)` check for `read(2)`-based path is
unnecessary, and it prevents the fallback from being executed, so this
change removes it.

https://github.com/ruby/prism/commit/b3d9064b71
</pre>
</div>
</content>
</entry>
<entry>
<title>[PRISM] Ensure not opening directories</title>
<updated>2024-07-18T17:03:25+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-07-18T15:39:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8e5ac5a87d8c10f4e94bb71ece3d83c78a53876e'/>
<id>8e5ac5a87d8c10f4e94bb71ece3d83c78a53876e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
