]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r305812:
authorpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 9 Oct 2016 19:58:27 +0000 (19:58 +0000)
committerpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 9 Oct 2016 19:58:27 +0000 (19:58 +0000)
commit4e6b5949a4c235e71bece4773e9504190fed4ced
tree8227fffd72cf4482756b9fa8fd28d2e710450047
parent97d293aae4be4b492f90352223ffa73499b7326c
MFC r305812:

fifolog(1): invert order of calloc(3) arguments.

The second argument to calloc(3) should be the size, make it so.

While here be a little bit more cautious in fifolog_reader_open()
to protect in the unlikely event of an overflowed allocation.

git-svn-id: svn://svn.freebsd.org/base/stable/10@306910 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/fifolog/lib/fifolog_create.c
usr.sbin/fifolog/lib/fifolog_reader.c
usr.sbin/fifolog/lib/fifolog_write_poll.c
usr.sbin/fifolog/lib/miniobj.h