In my function, a memory pointer and its size are passed as parameters:
int myFun(uintptr_t* mem_ptr, int mem_size) {
// Code here
}
Is there any way to tell if this chunk of memory is really valid?
(The Operating System is CentOS Linux release 7.9.2009.)