Re: [PATCH -resend with CC] crypto: algif_hash, avoid zero-sized array

2016-12-27 Thread Herbert Xu
On Thu, Dec 15, 2016 at 02:31:01PM +0100, Jiri Slaby wrote: > With this reproducer: > struct sockaddr_alg alg = { > .salg_family = 0x26, > .salg_type = "hash", > .salg_feat = 0xf, > .salg_mask = 0x5, > .salg_name = "digest_null", > }; > int so

[PATCH -resend with CC] crypto: algif_hash, avoid zero-sized array

2016-12-15 Thread Jiri Slaby
With this reproducer: struct sockaddr_alg alg = { .salg_family = 0x26, .salg_type = "hash", .salg_feat = 0xf, .salg_mask = 0x5, .salg_name = "digest_null", }; int sock, sock2; sock = socket(AF_ALG, SOCK_SEQPACKET, 0); bind(sock, (struct s