Hacker News new | ask | show | jobs
by 0xbadcafebee 42 days 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.
1 comments

"I just don't write bugs"

Yeah.