Compartilhar via


PREfast Warning 327 (Windows CE 5.0)

Send Feedback

327 - Potential buffer overrrun. SysAllocStringLen allocates a string and then blindly copies <constant> characters from the string <string>. The code may crash, depending on the data segment layout.

This message indicates a potential buffer overrun. SysAllocStringLen allocates a string and then blindly copies the specified number of characters from the specified string. The code might crash, depending on the data segment layout.

Example

Defective Source

SysAllocStringLen(L"MyString", 9);

Corrected Source

SysAllocStringLen(L"MyString", 8);

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.