Indata validation char* input
-
I have dll that export funtion and on of the parameters is C-style strings a serial number. extern "C" int __stdcall calc(char *SerialNumber) The parameters can be come from VB, C#, C++ , C I want to make som basic indata validation check that C-style is good kondition. That point is not pointing at null and that the array is null-terminated. Somebody can point me in the right direction. I don't want buffer over flow with staring to handel the string. Code sample?
-
I have dll that export funtion and on of the parameters is C-style strings a serial number. extern "C" int __stdcall calc(char *SerialNumber) The parameters can be come from VB, C#, C++ , C I want to make som basic indata validation check that C-style is good kondition. That point is not pointing at null and that the array is null-terminated. Somebody can point me in the right direction. I don't want buffer over flow with staring to handel the string. Code sample?