Ruby - Bug #15245: Heap buffer overflow (write of size 8) in vm.inc

nobu (Nobuyoshi Nakada)
2018-10-24T12:02:56Z

Yes, 2.4 is ok but 2.5 crashes.

$ ruby2.4 -v -e 'i = 0; %w(1) || 2 while (i += 1) < 100; p i'
ruby 2.4.5p335 (2018-10-18 revision 65137) [x86_64-darwin18]
100

$ ruby2.5 -v -e 'i = 0; %w(1) || 2 while (i += 1) < 100; p i'
ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin18]
100
-e:1: [BUG] Stack consistency error (sp: 106, bp: 7)