Skip to content

str*dup()->xstr*dup() where needed; library: openproc(): avoid closedir(NULL)

Roman Žilka requested to merge rz-contrib/procps:strdup-check into master
  1. There are multiple str*dup() calls with a NULL check missing. Replaced those that appear harmful with xstr*dup().
  2. Wrapped two unlikely occurrences of closedir(NULL) in a check. (Courtesy of gcc -fanalyzer.)
Edited by Roman Žilka

Merge request reports