Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSIZE_MAX_MEM limit #46

Open
sanchit-misra opened this issue Jul 10, 2020 · 1 comment
Open

RSIZE_MAX_MEM limit #46

sanchit-misra opened this issue Jul 10, 2020 · 1 comment

Comments

@sanchit-misra
Copy link

The following code in include/safe_mem_lib.h sets the maximum limit of memcpy to 256 MB.
#define RSIZE_MAX_MEM ( 256UL << 20 ) /* 256MB */

If we have larger copies, is it safe to increase the value of RSIZE_MAX_MEM or should we do it in multiple chunks?

@mehmetakbulut
Copy link

Is there any reason why this limit is hardcoded as 256MB? Are there circumstances where it would not be safe to increase outside of insufficient memory?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants