Tag: 94de803db748b902a9442fcfd7aad31a2fde43b7

drivers/net/sfc: Correct code taking the size of a pointer

Author: Julia Lawall <julia@diku.dk> The function efx_iterate_state contains the code memcpy(&payload->msg, payload_msg, sizeof(payload_msg)); This is the only use of payload_msg. The type of payload_msg is changed from a pointer to an array, so that the result of sizeof really is the length of the string. A simplified version of the semantic patch that finds this …

Continue reading