wasi-libc icon indicating copy to clipboard operation
wasi-libc copied to clipboard

Integer overflow in setenv

Open mikevoronov opened this issue 4 years ago • 0 comments

This code could lead to integer overflow into malloc. In its turn with subsequent memcpy it could lead to heap overflow. Hypothetically it could affect users. If it is matter, I can make a PR.

P.S. Also it is interested are such cases matter in general? Are there any policy to or not to mitigate them? I can imagine situations when users could be affected of this behaviour, but don't know any real examples.

mikevoronov avatar Aug 04 '20 20:08 mikevoronov