Unaligned Data and the PST Provider

I just wanted to let you know about a problem we’ve found with the February update for Outlook 2007. If you’ve got code that calls ConfigureMsgService for the PST provider, and you’re passing PR_PST_PW_SZ_OLD (or PR_PST_PW_SZ_NEW) you might run into a crash scenario. The crash can happen if the string you’re passing for this parameter is very short (0-2 characters, plus a NULL terminator) and the starting address isn’t aligned on a 4 byte boundary. We’re working on a fix for the issue. In the meantime, if you ensure the strings you pass for these properties are 4 byte aligned, you’ll avoid this problem.