At Tue, 24 Jan 2023 17:22:03 +0900 (JST), Kyotaro Horiguchi 
<horikyota....@gmail.com> wrote in 
> +pgstat_count_io_op(IOObject io_object, IOContext io_context, IOOp io_op)
> +{
> +     Assert(io_object < IOOBJECT_NUM_TYPES);
> +     Assert(io_context < IOCONTEXT_NUM_TYPES);
> +     Assert(io_op < IOOP_NUM_TYPES);
> +     Assert(pgstat_tracks_io_op(MyBackendType, io_object, io_context, 
> io_op));
> 
> Is there any reason for not checking the value ranges at the
> bottom-most functions?  They can lead to out-of-bounds access so I

To make sure, the "They" means "out-of-range io_object/context/op
values"..

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center


Reply via email to