Re: [HACKERS] [PATCH] Improve safety of FormatMessage() calls on Windows

2016-03-29 Thread Tom Lane
Christian Ullrich writes: > There are some instances of calls to FormatMessage() with the > FORMAT_MESSAGE_FROM_SYSTEM flag that omit the > FORMAT_MESSAGE_IGNORE_INSERTS flag. The effect of that is that if the > requested message string contains any insertion markers, the call to > FormatMessa

[HACKERS] [PATCH] Improve safety of FormatMessage() calls on Windows

2016-03-29 Thread Christian Ullrich
There are some instances of calls to FormatMessage() with the FORMAT_MESSAGE_FROM_SYSTEM flag that omit the FORMAT_MESSAGE_IGNORE_INSERTS flag. The effect of that is that if the requested message string contains any insertion markers, the call to FormatMessage() will fail because none of these