https://github.com/torvalds/linux
Revision ce042c183bcb94eb2919e8036473a1fc203420f9 authored by Dan Carpenter on 20 June 2018, 10:41:51 UTC, committed by Jens Axboe on 20 June 2018, 18:04:06 UTC
resp->num is the number of tokens in resp->tok[].  It gets set in
response_parse().  So if n == resp->num then we're reading beyond the
end of the data.

Fixes: 455a7b238cd6 ("block: Add Sed-opal library")
Reviewed-by: Scott Bauer <scott.bauer@intel.com>
Tested-by: Scott Bauer <scott.bauer@intel.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent a1e7918
Raw File
Tip revision: ce042c183bcb94eb2919e8036473a1fc203420f9 authored by Dan Carpenter on 20 June 2018, 10:41:51 UTC
block: sed-opal: Fix a couple off by one bugs
Tip revision: ce042c1
README
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
back to top