summaryrefslogtreecommitdiffhomepage
path: root/src/opcode.h
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-03-27 17:38:06 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2019-03-27 17:38:06 +0900
commit92dce053ad3432587425ad5b1e4a3cc12b190edc (patch)
treec2f3d2c26c640b27a775e6195a7fe0ba45cb7df5 /src/opcode.h
parentb8f00e439dd0eaa8282b635bfdaff446ae52d760 (diff)
downloadmruby-92dce053ad3432587425ad5b1e4a3cc12b190edc.tar.gz
mruby-92dce053ad3432587425ad5b1e4a3cc12b190edc.zip
Fix another bug related to #4342
For short symbols with alpha numeric characters, `mrb_sym2name_len()` returns the same buffer `mrb->symbuf`. Some occasion, we forget the fact that the second call could overwrite the result of first call of the function. We have prepared the static function `sym2name()` which specifies the buffer region for inline packed symbols and use the function in `mrb_sym_to_s`.
Diffstat (limited to 'src/opcode.h')
0 files changed, 0 insertions, 0 deletions