sys-file-writer: Remove assertions based on file position.
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 28 Feb 2019 04:11:06 +0000 (20:11 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 28 Feb 2019 04:12:47 +0000 (20:12 -0800)
commit0b842a84353790534a401e09a8d3bdd3d25bc3a6
tree4010ea04130a528bb76f2e521c0f2b5994466998
parentd1541b1258f0a28fe54ec061a8a9f2c459db8cc2
sys-file-writer: Remove assertions based on file position.

These assertions can fail if the underlying file is not a regular file,
e.g. if it is a device such as /dev/null.

CVE-2019-9211.
See also https://bugzilla.redhat.com/show_bug.cgi?id=1683499.
See also https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-9211.
See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=923417.
src/data/sys-file-writer.c