bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#46815: cp integer overflow in progress (time remaining)


From: Paul Eggert
Subject: bug#46815: cp integer overflow in progress (time remaining)
Date: Sat, 27 Feb 2021 09:54:26 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 2/27/21 7:35 AM, Ronald Knol wrote:
This is "cp -argu <sourcedir> <destdir>". The source tree contains more
than 2TiB worth of data.

I believe the issue is in src/copy.c where (on line 355) an INT is used to
store "cur_size".

     int cur_size = g_iTotalWritten + *total_n_read / 1024;

GNU coreutils 'cp' lacks a 'g' option, and doesn't have the line number you mentioned. It sounds like you're dealing with a bug in a modified version of 'cp', which means you should direct your bug report to whoever made that modification.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]