[krbdev.mit.edu #8707] Resource leak in ulog_map()

Bean Zhang via RT rt-comment at KRBDEV-PROD-APP-1.mit.edu
Wed Jun 20 10:54:48 EDT 2018


Hi Team,

In ulog_map() of krb5-1.16.1/src/lib/kdb/kdb_log.c,
When calls mmap(), will return a pointer to the mapped area and assigned to ulog
later if k5alloc() fails, this function returns without unmapping that mapped area ulog points to.

The fix is to call "munmap(ulog)" if this function returns on calling k5alloc() failure.

Could someone help to take a look?

Thanks,
Bean



More information about the krb5-bugs mailing list