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>
Attachment:
signature.asc
Description: PGP signature