Microsoft implements a bug with string functions

zhaozj2021-02-16  54

I used Microsoft's VC 60 debug newspapers and edited systems, and the system had serious instability. After a series of tracking, it was last positioned on a string function strull. The original process is called like this:

CHAR * SZFILEID;

.....

IF (Strlen (SZFILEID) == 0) RETURN FALSE;

.......

When the SZFILEID is assiable NULL, the system does not use it to return 0, but a serious system exception has occurred. Separate written programs Test the function int LEN = Strlen (NULL); the system has a serious error and prompts to exit.

The string function is a function that everyone is often used, so it is specifically written to communicate with you, interested in testing.

Liu Wanfu

February 21, 2003

转载请注明原文地址:https://www.9cbs.com/read-25589.html

New Post(0)