--- pfmon-3.2-060621/pfmon/pfmon_task.c.fortify 2006-06-27 09:27:25.000000000 -0400 +++ pfmon-3.2-060621/pfmon/pfmon_task.c 2006-06-27 09:25:19.000000000 -0400 @@ -1653,6 +1653,7 @@ int ctrl_fd; int max_fd; int ndesc, msg_type; + ssize_t dummy; /* * POSIX threads: @@ -1789,7 +1790,7 @@ /* * ack the removal */ - write(workers[mycpu].from_worker[1], &msg, sizeof(msg)); + dummy = write(workers[mycpu].from_worker[1], &msg, sizeof(msg)); break; case PFMON_TASK_MSG_QUIT: --- pfmon-3.2-060621/pfmon/pfmon_smpl.c.fortify 2006-06-27 09:30:32.000000000 -0400 +++ pfmon-3.2-060621/pfmon/pfmon_smpl.c 2006-06-27 09:29:15.000000000 -0400 @@ -444,6 +444,7 @@ size_t len, pref_len; char uuid_str[64]; char buffer[256]; + char *p; if (options.opt_is22 == 0) return pfmon_check_smpl_module_legacy(uuid); @@ -482,7 +483,9 @@ if (fp == NULL) continue; - fgets(buffer, sizeof(buffer)-1, fp); + p = fgets(buffer, sizeof(buffer)-1, fp); + if (p == NULL) + continue; if (!strncmp(buffer, uuid_str, len)) { DPRINT(("found uuid_str:%s:\nuuid_p:%s", uuid_str, buffer));