Bug 262056 - usr.bin/fetch: strtol(3) overflow in -S (--require-size) on 32-bit systems
Summary: usr.bin/fetch: strtol(3) overflow in -S (--require-size) on 32-bit systems
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: i386 Any
: --- Affects Only Me
Assignee: Stefan Eßer
URL:
Keywords: needs-patch
Depends on:
Blocks:
 
Reported: 2022-02-19 22:47 UTC by Jan Beich
Modified: 2022-02-20 16:45 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.