Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Apr 2022 16:35:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 224845] Change return type to size_t in dd(1)
Message-ID:  <bug-224845-227-g3KQMBbspN@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-224845-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-224845-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224845

Piotr Pawel Stefaniak <pstef@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |Not A Bug
                 CC|                            |pstef@freebsd.org
             Status|New                         |Closed

--- Comment #2 from Piotr Pawel Stefaniak <pstef@freebsd.org> ---
This is purposely wider than size_t. get_num() is used by several functions,
including f_count() and the uintmax_t type makes it possible to copy
UINTMAX_MAX blocks. Some of the callers can compare the value against SSIZE=
_MAX
and yield an error if it is too large; otherwise, the value is converted to
size_t.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-224845-227-g3KQMBbspN>