CVS commit: src/sbin/gpt

"Roland Illig" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.