Some weird things about memory access in Linux
In-field Overflow Access
In lib/xz/xz_dec_lzma2.c
, we can find the following code:
1 | static void lzma_reset(struct xz_dec_lzma2 *s) |
We note that PROBS_TOTAL
(14133) is larger than POS_STATES_MAX
(16), but it is a legal access for lzma.is_match
because the program want to set all the tail elements in lzma_dec
.
1 | struct lzma_dec { |
- Post title:Some weird things about memory access in Linux
- Post author:Zheng Yu
- Create time:2023-04-16 14:34:20
- Post link:https://dataisland.org/2023/04/16/mem-access-in-linux/
- Copyright Notice:All articles in this blog are licensed under BY-NC-SA unless stating additionally.