aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/renice.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-10-08 17:27:12 -0500
committerRob Landley <rob@landley.net>2016-10-08 17:27:12 -0500
commit6928fbc3a11c862a576433f17c73a2133a8c7d26 (patch)
tree9942d90a734156d945c1fa246dc30db6d3108d9f /toys/posix/renice.c
parentcefc0a2183f57173dab47cf89fcb37e7a827f258 (diff)
downloadtoybox-6928fbc3a11c862a576433f17c73a2133a8c7d26.tar.gz
Evgenii Stepanov found a bug where argv0len was set wrong for threads
(no /proc/$PID/cmdline so setting was skipped and previous value retained), which led to memcpy() with an overlapping source/dest range (annoying asan). Fix: move temp variable and assignment outside the if() statement so we assign zero if we can''t read the file.
Diffstat (limited to 'toys/posix/renice.c')
0 files changed, 0 insertions, 0 deletions