fix: copy_file skip files larger than 1GB (Fixes #4039)#4048
fix: copy_file skip files larger than 1GB (Fixes #4039)#4048IamHuskar wants to merge 3 commits intorr-debugger:masterfrom
Conversation
Dotnet runtime may create 2TB memory-mapped files. 'copy_file' will persist this file.
|
I'm not completely certain this is the correct fix, and English isn't my first language. Feel free to modify anything in this PR |
|
I think this fix should be in |
|
the CI test failed on ARM, but it works fine on my ARM device. |
I see. Ok then, check the file size --- that makes sense, actually, since we're going to copy the whole file, and we don't want to copy too much. But this check should still go next to the PROT_EXEC condition, because the goal here is "copy files when the mapping is PROT_EXEC, unless the file is too big". |


Dotnet runtime may create 2TB memory-mapped files. 'copy_file' will persist this file.