[File] [PATCH] Ensure that mem allocation size is non-zero

Christos Zoulas christos at zoulas.com
Fri Sep 24 14:00:12 UTC 2021


Fixed slightly differently.

Thanks,

christos

> On Sep 24, 2021, at 8:48 AM, Avinash Sonawane <rootkea at gmail.com> wrote:
> 
> Hello!
> 
> Please find the attached patch which ensures that mem allocation size
> is non-zero.
> 
> Relevant:
> https://wiki.sei.cmu.edu/confluence/display/c/MEM04-C.+Beware+of+zero-length+allocations
> 
> Found by: scan-build[0]
> 
> [0] https://clang-analyzer.llvm.org/scan-build
> 
> Thanks!
> 
> Regards,
> Avinash Sonawane (rootKea)
> https://www.rootkea.me
> <0001-Ensure-that-mem-allocation-size-is-non-zero.patch>--
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP
URL: <https://mailman.astron.com/pipermail/file/attachments/20210924/0f1c22d3/attachment.asc>


More information about the File mailing list