Re: [dpdk-dev] [PATCH v3] net/virtio: fix of untrusted scalar value

2017-09-27 Thread Yuanhan Liu
On Fri, Sep 22, 2017 at 05:21:49PM +0200, Daniel Mrzyglod wrote: > The unscrutinized value may be incorrectly assumed to be within a certain > range by later operations. > > In vhost_user_read: An unscrutinized value from an untrusted source used > in a trusted context - the value of sz_payload ma

[dpdk-dev] [PATCH v3] net/virtio: fix of untrusted scalar value

2017-09-22 Thread Daniel Mrzyglod
The unscrutinized value may be incorrectly assumed to be within a certain range by later operations. In vhost_user_read: An unscrutinized value from an untrusted source used in a trusted context - the value of sz_payload may be harmfull and we need limit them to the max value of payload. Coverity