commit | 96a9f90882a342f307761c0333899ab97fed2bc6 | [log] [tgz] |
---|---|---|
author | Stephen Boyd <sboyd@codeaurora.org> | Mon Jul 18 18:43:00 2011 -0700 |
committer | Bryan Huntsman <bryanh@codeaurora.org> | Mon Oct 03 10:26:37 2011 -0700 |
tree | 4fcf73126a2d03a2c8191f7b884390071a94438e | |
parent | e9cb532c807c61afb1f692d013da6a3e88028e90 [diff] |
msm: pil: Replace incorrect offset check This check is practically useless as it doesn't ensure anything besides that the program headers start within the file size. It's still possible for the program headers to extend beyond the size of the data passed in. Fix this check by actually ensuring the size of the buffer is enough to contain at least the program headers so we don't access unmapped memory. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>