Can you verify security of my 2 small C and JS code?

Please, I declare two pointers array in C code, but I will use it with malloc in javascript. I want to know if my C code is secure I mean when I just reserve a place in memory and as long as it’s just a declaration of a pointer nobody (hackers) has access to it. […]