Page MenuHomeFreeBSD

aio_kqueue_test: Fix CID 1558429
AcceptedPublic

Authored by dab on Sun, Jan 5, 7:59 PM.

Details

Summary

Fix a Coverity error in the aio_kqueue_test that could theoretically
(but probably not realistically) cause over-indexing an array.

Test Plan

Ran test on local system; passed.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 61512
Build 58396: arc lint + arc unit

Event Timeline

dab held this revision as a draft.
dab edited the summary of this revision. (Show Details)

Typo correction

dab published this revision for review.Sun, Jan 5, 8:05 PM

I think this is OK. But it would also be fine just to put an assert(j < max_queue_per_proc before the array dereference.

This revision is now accepted and ready to land.Mon, Jan 6, 1:59 PM