https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209538
Bug ID: 209538
Summary: use-after-free bug in nscd cache_read() - Coverity CID
1006083
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Keywords: patch
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
Created attachment 170339
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=170339&action=edit
patch to fix use-after-free error in nscd
Coverity flagged a use-after-free error in the nscd cache_read function. It
noticed that find_res->value is getting freed before it gets passed to
memcpy(). It looks like the problem is a missing return (-1) inside the
if (find_res->fifo_policy_item->last_request_time.tv_sec -
find_res->fifo_policy_item->creation_time.tv_sec
common_entry->common_params.max_lifetime.tv_sec) {
block.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"