[Bug 224845] Change return type to size_t in dd(1)

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 21 Apr 2022 16:35:54 UTC

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

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