Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libsandbox/trace/linux/ia64.c:53 off by one error leads to memory access above array bounds #17

Open
gto2023 opened this issue Jul 14, 2023 · 0 comments

Comments

@gto2023
Copy link
Contributor

gto2023 commented Jul 14, 2023

struct sb_ia64_trace_regs {
  unsigned long r8, r10, r15;
  unsigned long out[6];
};
#define trace_regs struct sb_ia64_trace_regs

[...]

static long trace_get_regs(void *vregs) {
        trace_regs *regs = vregs;
[...]
        for (i = 0; i < 7; ++i)
                regs->out[i] = do_peekdata((uintptr_t)ia64_rse_skip_regs(out0, i));
[...]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant