summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-pack/src
AgeCommit message (Collapse)Author
2018-09-19Remove implicit conversion using `to_int` method.Yukihiro "Matz" Matsumoto
The ISO standard does not include implicit type conversion using `to_int`. This implicit conversion often causes vulnerability. There will be no more attacks like #4120. In addition, we have added internal convenience method `__to_int` which does type check and conversion (from floats).
2018-09-18Use `mrb_to_flo()` to check return value from `to_f`; fix #4115Yukihiro "Matz" Matsumoto
The ISO standard does not include implicit type conversion using `to_int`, `to_str` and sometimes `to_f`. For the compactness of the mruby implementation, maybe we should remove those implicit conversion from mruby.
2018-09-07Add a new method `unpack1` to `mruby-pack` gem.Yukihiro "Matz" Matsumoto
2018-09-07Fix heap buffer overflow in `unpack_a`; fix #4103Yukihiro "Matz" Matsumoto
2018-06-15Fixed wrong usages of `mrb_raisef()`; ref #4043Yukihiro "Matz" Matsumoto
`mrb_raisef()` only takes `%S` specifier. If you don't have extra arguments, use `mrb_raise()`.
2018-03-02Round up the `dstlen` value; fix #3949Yukihiro "Matz" Matsumoto
The fix was proposed by https://hackerone.com/aerodudrizzt
2018-02-13Check `sizeof(base64_dec_tab)` in base64 encoding; fix #3947Yukihiro "Matz" Matsumoto
The issue (and the fix) reported by https://hackerone.com/aerodudrizzt
2018-02-13Check negative offset in `pack` method; fix #3944Yukihiro "Matz" Matsumoto
2018-02-13Fixed wrong offset in `pack_x` function; ref #3944Yukihiro "Matz" Matsumoto
2018-02-13Use 'mrb_raise` instead of `mrb_raisef` when no argument given.Yukihiro "Matz" Matsumoto
2018-02-10Check negative `count` in `pack_x` and `unpack_x`; fix #3944Yukihiro "Matz" Matsumoto
2018-02-09Check if `mruby-pack` template count overflow; fix #3942Yukihiro "Matz" Matsumoto
2017-12-13Reduce VC++ type mismatch warnings.Yukihiro "Matz" Matsumoto
2017-12-12Do not use `FIXABLE` when `mrb_int` is big enough.Yukihiro "Matz" Matsumoto
2017-12-12Reduce type mismatch warnings in pack.c.Yukihiro "Matz" Matsumoto
2017-12-12Fixed the mixture of `int` and `long` in `mruby-pack`.Yukihiro "Matz" Matsumoto
2017-12-12Support MRB_WITHOUT_FLOAT to mruby-io and mruby-packYusuke Endoh
2017-12-11Reduce VC++ compiler warnings.Yukihiro "Matz" Matsumoto
2017-12-09Reduce VC++ compiler warnings.Yukihiro "Matz" Matsumoto
2017-12-07Avoid uninitialized local variables in `mruby-pack`.Yukihiro "Matz" Matsumoto
2017-12-07Add 'mrbgems/mruby-pack/' from commit '383a9c79e191d524a9a2b4107cc5043ecbf6190b'Yukihiro "Matz" Matsumoto
git-subtree-dir: mrbgems/mruby-pack git-subtree-mainline: 842e6945f2d0a519d7cf0525016830246cd337ab git-subtree-split: 383a9c79e191d524a9a2b4107cc5043ecbf6190b