The logic to match the vendor-specific attribute in SSD API is not accurate. The vendor-specific attribute should start with a new line (\n) otherwise it can hit a false match scenario.
Motivation and Context
How Has This Been Tested?
Unit test and manual test
Additional Information (Optional)
Eg. if the raw value of an attribute happens to contain the ID, the next line can be matched but it is wrong.
For example the vendor-specific attribute ID is 248, but the output is like the following:
Description
The logic to match the vendor-specific attribute in SSD API is not accurate. The vendor-specific attribute should start with a new line (
\n
) otherwise it can hit a false match scenario.Motivation and Context
How Has This Been Tested?
Unit test and manual test
Additional Information (Optional)
Eg. if the raw value of an attribute happens to contain the ID, the next line can be matched but it is wrong. For example the vendor-specific attribute ID is 248, but the output is like the following:
The raw value of attribute 235 contains
248
, the next line, which is of attribute 237, will be matched, which is wrong.