Re: [dpdk-dev] [PATCH] service: don't walk out of bounds when checking services

2019-12-03 Thread Aaron Conole
David Marchand writes: > On Tue, Nov 26, 2019 at 3:56 PM Aaron Conole wrote: >> >> The service_valid call is used without properly bounds checking the >> input parameter. Almost all instances of the service_valid call are >> inside a for() loop that prevents excessive walks, but some of the >>

Re: [dpdk-dev] [PATCH] service: don't walk out of bounds when checking services

2019-12-02 Thread David Marchand
On Tue, Nov 26, 2019 at 3:56 PM Aaron Conole wrote: > > The service_valid call is used without properly bounds checking the > input parameter. Almost all instances of the service_valid call are > inside a for() loop that prevents excessive walks, but some of the > public APIs don't bounds check a

Re: [dpdk-dev] [PATCH] service: don't walk out of bounds when checking services

2019-12-02 Thread Eads, Gage
> -Original Message- > From: Aaron Conole > Sent: Tuesday, November 26, 2019 8:56 AM > To: dev@dpdk.org > Cc: Van Haaren, Harry ; Richardson, Bruce > ; Pavan Nikhilesh > ; Eads, Gage ; Thomas > Monjalon ; David Marchand > > Subject: [PATCH] service: don't walk out of bounds when checking

[dpdk-dev] [PATCH] service: don't walk out of bounds when checking services

2019-11-26 Thread Aaron Conole
The service_valid call is used without properly bounds checking the input parameter. Almost all instances of the service_valid call are inside a for() loop that prevents excessive walks, but some of the public APIs don't bounds check and will pass invalid arguments. Prevent this by using SERVICE_