file: patch for CVE-2018-10360 (#43856)
from Gentoo, based on upstream commit.
(cherry picked from commit 6546d17cfff4fc2a0f867d15f0d431e604b25740)
It seems not clear if _this_ version was affected by the CVE,
but the patch seems safe enough, so apply it to be sure.
authored by Will Dietz and committed by Vladimír Čunát 0e55dde2 d1a47f37