BUG: CMDExec Task May Cause Heap Corruption and AV in SQL Executive (234200)
The information in this article applies to:
- Microsoft SQL Server 6.5 Service Pack 5 and 5a
This article was previously published under Q234200
BUG #: 18750 (SQLBUG_65)
SYMPTOMS
A CMDexec task may cause heap corruption if it contains an extra double quote ("). Repeated execution of the task may cause a SQL Executive Access Violation (AV). For example, a batch file named mybatch.cmd containing:
isql -U"sa" -P -Q"SELECT 1"
isql -U"sa" -P -Q"SELECT 1"
isql -U"sa" -P -Q"SELECT 1"
when executed as CMDexec task as mybatch.cmd, causes heap corruption and may cause an access violation.
If the double quotes are removed from around the sa characters in the preceding code, the problem does not occur:
isql -Usa -P -Q"SELECT 1"
isql -Usa -P -Q"SELECT 1"
isql -Usa -P -Q"SELECT 1"
This behavior occurs with the CMDEXEC.dll shipping with Service Pack 5, dated 8/26/98. It does not occur with previous versions of the file.
WORKAROUND
To work around this problem, choose either of the following:
STATUS
Microsoft has confirmed this to be a problem in SQL Server version 6.5 Service Pack 5 and Service Pack 5a.
Modification Type: | Major | Last Reviewed: | 10/3/2003 |
---|
Keywords: | kbBug kbpending KB234200 |
---|
|