mirror of
https://github.com/ruby/ruby.git
synced 2026-08-29 15:45:44 +08:00
It looks like we can possibly do an out of bounds read if size is equal to 0. This commit adds a conditional to ensure size is actually greater than 0 before looking backwards in the buffer https://github.com/ruby/prism/commit/2031b626e6