Tag: 0d64b568fcd48b133721c1d322e7c51d85eb12df

ALSA: sound/isa/gus: Correct code taking the size of a pointer

Author: Julia Lawall <julia@diku.dk> sizeof(share_id) is just the size of the pointer. On the other hand, block->share_id is an array, so its size seems more appropriate. A simplified version of the semantic patch that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression *x; expression f; type T; @@ *f(…,(T)x,…) // Signed-off-by: Julia Lawall …

Continue reading