Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/sbin/gpt
Module Name: src
Committed By: rillig
Date: Sat Mar 14 19:17:23 UTC 2026
Modified Files:
src/sbin/gpt: main.c
Log Message:
gpt: fix compile-time integer overflow for terabytes and petabytes
Previously, overly large values for mediasize in TB and PB were accepted
and processed modulo 1<<64.
lint complained: main.c(223): warning:
'18446744073708503040 * 1024' overflows 'unsigned long'
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sbin/gpt/main.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index