dearblue
6c2f570d79
Fixed base64 decoding in mruby-pack
...
Previously `\x80` was incorrectly mapped to `0`.
```ruby
"\x80\x80\x80\x80".unpack("m*")
# before => "\x00\x00\x00"
# after => ""
```
The reason is that the C string terminator is placed in `base64_dec_tab[128]` and the array length is obtained by `sizeof`.
Therefore, the length of `base64_dec_tab[]` is strictly specified and replaced with element-by-element initialization.
Also, similar changes are made to `base64chars[]`.
2024-04-20 09:56:08 +09:00
..
2024-04-13 08:53:32 +02:00
2024-01-03 07:23:55 +09:00
2024-02-17 11:14:57 +09:00
2024-03-31 11:53:09 +09:00
2023-12-06 15:51:20 +09:00
2023-12-06 15:54:33 +09:00
2024-01-16 12:28:32 +09:00
2023-04-01 23:32:36 +09:00
2023-12-22 21:59:34 +09:00
2023-12-07 21:33:14 +09:00
2024-03-26 13:59:59 +09:00
2023-05-22 12:05:35 +09:00
2023-04-14 01:06:29 +09:00
2024-03-26 13:59:59 +09:00
2024-01-20 22:07:29 +09:00
2023-12-23 21:01:42 +09:00
2024-03-26 13:59:59 +09:00
2019-09-02 08:58:33 +09:00
2024-01-22 18:26:01 +09:00
2024-02-15 14:55:38 +09:00
2024-01-22 18:31:28 +09:00
2024-03-26 13:59:59 +09:00
2022-11-19 17:11:56 +09:00
2024-01-20 22:20:20 +09:00
2023-02-10 15:21:38 +09:00
2024-04-13 22:22:39 +09:00
2024-01-03 07:23:55 +09:00
2024-04-10 13:35:03 +09:00
2024-01-06 14:31:32 +09:00
2024-01-09 08:01:28 +09:00
2024-03-27 21:39:32 +09:00
2024-03-26 13:59:59 +09:00
2024-01-03 07:23:55 +09:00
2024-01-20 22:07:29 +09:00
2022-09-04 20:53:18 +09:00
2024-01-31 22:17:16 +09:00
2024-04-20 09:56:08 +09:00
2023-08-29 21:59:09 +09:00
2023-12-03 22:38:29 +09:00
2023-12-03 22:38:31 +09:00
2024-04-04 20:36:44 +02:00
2023-10-13 16:59:21 +09:00
2024-02-01 16:15:42 +09:00
2023-10-14 18:52:30 +10:00
2024-03-26 13:59:59 +09:00
2024-03-26 13:59:59 +09:00
2024-04-18 15:48:45 +09:00
2024-01-18 22:53:46 +09:00
2023-12-23 21:01:42 +09:00
2022-10-27 04:43:13 +10:00
2023-08-30 18:32:48 +09:00
2023-02-21 16:33:15 +09:00
2024-03-26 13:59:59 +09:00
2022-12-29 14:29:48 +10:00
2021-01-06 18:10:21 +09:00
2021-01-06 18:10:21 +09:00
2023-04-04 19:31:42 +10:00
2023-11-12 19:01:08 +09:00
2022-07-07 15:39:36 +09:00
2020-12-21 21:48:50 +09:00
2022-11-29 15:58:05 +09:00
2022-12-20 18:49:29 +09:00
2022-12-04 18:33:12 +09:00