Well, we found out that cl.exe incorrectly processes a line enclosed into double quote marks with a space. For instance:
/D "" WEBCORE_NAVIGATOR_VENDOR=\"Google Inc.\" ""
When cl.exe came across this command line argument, it processed it incorrectly as well as all the further arguments. And most likely, it is not the fault of cl.exe but such is just the approach to processing command line arguments in general. But it is not that important. What is of interest to us is that in order to recall this error, we must have a project that:
- has user define;
- and not just define but with a specified value;
- and not just a value but a string value;
- and not just a string value but with a space inside it;
- and of course it must be enclosed in quote marks.
Detecting such an error in a project with a long life-cycle means that it is very difficult to provide for every possible kind of external input data. This is a very hard yet interesting task.
Комментариев нет:
Отправить комментарий