Werk #6869: Fixed all crashes in Windows Agent caused by UTF-16 to UTF-8 conversion

Component Checks & agents
Title Fixed all crashes in Windows Agent caused by UTF-16 to UTF-8 conversion
Date Feb 11, 2019
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
1.6.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.6.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.6.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.6.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.6.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.6.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.5.0p12 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

Some Windows checks may produce invalid UTF-16 symbols or symbols which are difficult to convert into UTF-8 using standard library. As a result the Agent may crash with exception 'range_error' during 'to_bytes' call.

Now in such cases the Agent uses native Win32 API call avoiding the crash. Provided output from above mentioned Win32 API call conforms to the UTF-8 standard.

To the list of all Werks