I have a function that have a char*
as parameter to receive some informations from inside the function. (int foo(char* param1)
)
How can I be sure that this parameter have the enough allocated space to receive all the information I need to put in? I can be sure if it is, or not, a valid pointer, but I haven't found a way to be sure about the size/length allocated to the parameter.
I can't change the function (can't add another parameter with the size).