[File] [PATCH] Ensure that mem allocation size is non-zero
Avinash Sonawane
rootkea at gmail.com
Fri Sep 24 12:48:42 UTC 2021
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Ensure-that-mem-allocation-size-is-non-zero.patch
Type: text/x-patch
Size: 1199 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20210924/0aea9a6b/attachment.bin>
More information about the File
mailing list