diff --git a/doc/fortunes.fun b/doc/fortunes.fun index 38d114002a..520096efc7 100644 --- a/doc/fortunes.fun +++ b/doc/fortunes.fun @@ -321,3 +321,4 @@ Watch until the end! Don't forget to subscribe! Ah shit, here we go again. Checking whether this software can be played... +Will it blend? diff --git a/libr/bin/format/coff/xcoff64.c b/libr/bin/format/coff/xcoff64.c index ce05764af5..d0f435a4fc 100644 --- a/libr/bin/format/coff/xcoff64.c +++ b/libr/bin/format/coff/xcoff64.c @@ -88,6 +88,8 @@ static bool r_bin_xcoff64_init_scn_hdr(RBinXCoff64Obj *obj) { ut64 offset = sizeof (struct xcoff64_hdr) + obj->hdr.f_opthdr; size = obj->hdr.f_nscns * sizeof (struct xcoff64_scn_hdr); if (offset > obj->size || offset + size > obj->size || size < 0) { + obj->hdr.f_nscns = 0; + obj->scn_hdrs = NULL; return false; } obj->scn_hdrs = calloc (1, size + sizeof (struct xcoff64_scn_hdr));