Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4edabfd7 authored by Pan Bian's avatar Pan Bian Committed by Trond Myklebust
Browse files

NFSv4: check return value of xdr_inline_decode



Function xdr_inline_decode() will return a NULL pointer if the input
buffer does not have long enough buffer to decode nbytes of data.
However, in function decode_op_map(), the return value of
xdr_inline_decode() is not validated before it is used. This patch adds
a check to the return value of xdr_inline_decode().

Signed-off-by: default avatarPan Bian <bianpan2016@163.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 209aa230
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment