libopkg: check for file size mismatches
authorJo-Philipp Wich <jo@mein.io>
Thu, 31 Jan 2019 07:29:22 +0000 (08:29 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 31 Jan 2019 07:39:18 +0000 (08:39 +0100)
commitcb6640381808dd629cfa58a21ceaf12e91a82e68
tree39055e3d3623bdbaffed27a7bef39cc1aed268ca
parent7708a01a084872bbe4c46f36d2da021fdeb10862
libopkg: check for file size mismatches

Reject package files whose file size deviates from the size specified
in the package index in order to complicate producing hash collisions.

Ref: https://groups.google.com/d/msg/opkg-devel/o4kiGQMvkiw/hu0TVv59DgAJ
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libopkg/opkg_install.c