diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-03-27 17:38:06 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-03-27 17:38:06 +0900 |
| commit | 92dce053ad3432587425ad5b1e4a3cc12b190edc (patch) | |
| tree | c2f3d2c26c640b27a775e6195a7fe0ba45cb7df5 /src/string.c | |
| parent | b8f00e439dd0eaa8282b635bfdaff446ae52d760 (diff) | |
| download | mruby-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/string.c')
0 files changed, 0 insertions, 0 deletions
