summaryrefslogtreecommitdiff
path: root/test/json/json_generator_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <[email protected]>2024-10-28 13:21:14 -0700
committergit <[email protected]>2024-10-28 20:38:20 +0000
commit3c9be02af1e44a79191309cf727ede20cc576cb0 (patch)
tree1b01e3a66f6f0a9adc35f75955926f109d6eed48 /test/json/json_generator_test.rb
parent83568a41afade809e03fdadd5f4026488920b293 (diff)
[ruby/prism] Only read from buffer if `size` is greater than 0
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
Diffstat (limited to 'test/json/json_generator_test.rb')
0 files changed, 0 insertions, 0 deletions