Skip to content

Fix execute_session_scan_read on big endian machines.

Elliott Sales de Andrade requested to merge QuLogic/libinsane:fix-be into master

The buffer contains an int, and msg_out->raw.iov_len is a size_t, which is twice the size on 64-bit machines. On big-endian machines, the 4 bytes of the int will be put in the MSB, meaning malloc will be called with a really big number.

Merge request reports