Covscan reports there are two issues labeled with USE_AFTER_FREE.
lru: In remove_node, when the queue has only one single element,. the queue->front pointer is updated but the queue->end is not. It does not cause any problems because in dequeue we loop until queue->count > 0 , instead of queue->end != NULL .
auditd-event: covscan says that Equality between "oconf->plugin_dir" and "nconf->plugin_dir" implies that they are aliases. I think the condition if (oconf->plugin_dir != nconf->plugin_dir ...) will always be true because in clear_config, we have:
config->plugin_dir = strdup("/etc/audit/plugins.d");
Covscan reports there are two issues labeled with USE_AFTER_FREE.
remove_node
, when the queue has only one single element,. thequeue->front
pointer is updated but thequeue->end
is not. It does not cause any problems because indequeue
we loop untilqueue->count > 0
, instead ofqueue->end != NULL
.Equality between "oconf->plugin_dir" and "nconf->plugin_dir" implies that they are aliases.
I think the conditionif (oconf->plugin_dir != nconf->plugin_dir
...) will always be true because inclear_config
, we have:config->plugin_dir = strdup("/etc/audit/plugins.d");