]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ar: detect and error out on 32-bit symbol table overflow
authorEd Maste <emaste@FreeBSD.org>
Fri, 28 Dec 2018 17:00:12 +0000 (17:00 +0000)
committerEd Maste <emaste@FreeBSD.org>
Fri, 28 Dec 2018 17:00:12 +0000 (17:00 +0000)
commit699f18019873a2bdae5c68ec75153f7065aa589a
tree72f1d5aa8ad472288935b40c4e38adc00871d961
parent311a17259ee0810bdb91e8d145e9286dddae899b
ar: detect and error out on 32-bit symbol table overflow

BSD ar currently does not support the /SYM64/ 64-bit symbol table, and
previously truncated to 32-bits, silently producing corrupted archives
larger than 4GB.

Note that this is only a partial fix; additional checks will come.

PR: 234454
Reported by: Aijaz Baig, imp
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
usr.bin/ar/write.c