[Toybox] [PATCH] file: don't be confused by BSS sections.

enh enh at google.com
Tue Mar 15 19:30:16 PDT 2022


BSS sections are *expected* to claim a larger size than is actually
present in the file. Unlike program headers which have two different
size fields for the memory and file sizes, sections headers only have
one size field, so we're using the right field; we just need to ignore
it for our overflow checking purposes.
---
 toys/posix/file.c | 1 +
 1 file changed, 1 insertion(+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20220315/73f8cb4e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-file-don-t-be-confused-by-BSS-sections.patch
Type: text/x-patch
Size: 1093 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20220315/73f8cb4e/attachment.bin>


More information about the Toybox mailing list