Bug 262056

Summary: usr.bin/fetch: strtol(3) overflow in -S (--require-size) on 32-bit systems
Product: Base System Reporter: Jan Beich <jbeich>
Component: binAssignee: Stefan Eßer <se>
Status: Closed FIXED    
Severity: Affects Only Me CC: bofh, pi
Priority: --- Keywords: needs-patch
Version: CURRENT   
Hardware: i386   
OS: Any   

Description Jan Beich freebsd_committer freebsd_triage 2022-02-19 22:47:15 UTC
print/texlive-texmf after ports 8374a33c804a fails to confirm target file size due to value being larger than LONG_MAX.

$ fetch -S 3474113420 https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2021/texlive-20210325-texmf.tar.xz
fetch: https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2021/texlive-20210325-texmf.tar.xz: size mismatch: expected 2147483647, actual 3474113420
Comment 1 Jan Beich freebsd_committer freebsd_triage 2022-02-20 16:45:30 UTC
Fixed by base 32066c96fa00.