2 ms·
memmove(args->begin_argv + extend, args->begin_argv + consume, args->endp - args->begin_argv + consume); // ← bug C code like this is why we can't have
by 0xbadcafebee 6mo ago
memmove(args->begin_argv + extend, args->begin_argv + consume,
args->endp - args->begin_argv + consume); // ← bug
C code like this is why we can't have nice things. Arithmetic operation in the arguments of a dangerous function call with no explicit bounds check.
- sethops1 6mo ago"I just don't write bugs" Yeah.
- jahanzeb1018 6mo ago[flagged]