Note that on i386 this introduces a new 2GB limit, but this is not a concern in practice. Also avoid allocating an extra byte in the old and new file content buffers.
Based on the "NON-CRYPTANALYTIC ATTACKS AGAINST FREEBSD UPDATE COMPONENTS" gist.
Differential D7619
bspatch: add sanity checks on sizes emaste on Aug 23 2016, 11:26 PM. Authored by Tags None Referenced Files
Details Note that on i386 this introduces a new 2GB limit, but this is not a concern in practice. Also avoid allocating an extra byte in the old and new file content buffers. Based on the "NON-CRYPTANALYTIC ATTACKS AGAINST FREEBSD UPDATE COMPONENTS" gist.
Diff Detail
Event Timeline
Comment Actions Changes seem fine to me. This code is really ugly, though.
|