BUG: SUBSTR Index Past End of String Incorrectly Assembles (111502)
The information in this article applies to:
- Microsoft Macro Assembler (MASM) 6.0
- Microsoft Macro Assembler (MASM) 6.0a
- Microsoft Macro Assembler (MASM) 6.0b
- Microsoft Macro Assembler (MASM) 6.1
- Microsoft Macro Assembler (MASM) 6.1a
- Microsoft Macro Assembler (MASM) 6.11
This article was previously published under Q111502 SYMPTOMS
MASM 6.x will incorrectly assemble the SUBSTR directive and not generate
the expected error if the index value is 1 (one) greater than the length of
the string. The expected error is:
A2091: index value past end of string
STATUS
Microsoft has confirmed this to be a problem in the Microsoft Macro
Assembler (MASM) versions 6.x. We are researching this problem and will
post new information here in the Microsoft Knowledge Base as it becomes
available.
Modification Type: | Minor | Last Reviewed: | 10/14/2003 |
---|
Keywords: | KB111502 |
---|
|