[Bug 209475] pf didn't check if enough free RAM for net.pf.states_hashsize

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jan 17 19:45:38 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209475

--- Comment #18 from fehmi noyan isi <fnoyanisi at yahoo.com> ---
(In reply to Kristof Provost from comment #17)
Sounds a better approach than I suggested, thanks!

As the allocation size can be set by the user, don't you think mallocarray(9)
would be a better choice than malloc(9) in this case?

I see that you mentioned using mallocarray(9) could be a separate commit, but
once the code is updated to fix a memory allocation issue, it may pay to use
the new system call we have. What do you think?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-pf mailing list