Re: [cbootimage PATCH] Fix various abort(), crashes, and memory errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/17/2018 03:59 AM, Thierry Reding wrote:
On Fri, Sep 14, 2018 at 02:47:49PM -0600, Stephen Warren wrote:
From: Stephen Warren <swarren@xxxxxxxxxx>

cbootimage doesn't have extensive error-checking of the input files. Thus
it's easy to trigger aborts (which in turn segfault to exit the app) and
bad memory accesses by providing under-sized binary input files or
configuration files with missing required statements. Add a bit more
error-checking to clean up some of these cases. No doubt there are more,
but this change only fixes those that have been reported.

Signed-off-by: Stephen Warren <swarren@xxxxxxxxxx>
---
  src/cbootimage.c  | 15 ++++++++++++++-
  src/data_layout.c | 11 +++++++++--
  src/parse.c       |  2 +-
  3 files changed, 24 insertions(+), 4 deletions(-)

Reviewed-by: Thierry Reding <treding@xxxxxxxxxx>

Applied.



[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux