Fix CVE-2020-10188
Reviewed by: emaste Obtained from: NetBSD 6cc1539c8028b MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D36732