chrome-native-messaging icon indicating copy to clipboard operation
chrome-native-messaging copied to clipboard

Use native byte order instead of little-endian.

Open guerard opened this issue 4 years ago • 0 comments

Per Google's documentation, the length of the message will be sent in the native byte-order, and so neither big nor little endianness can be assumed. This simply wraps the relevant read/write calls in an endianness check.

guerard avatar Apr 06 '20 01:04 guerard