Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1317984

Re: crypto: algif_hash: creating 0 sized array in hash_accept

From Sasha Levin <sasha.levin@oracle.com>
Newsgroups linux.kernel
Subject Re: crypto: algif_hash: creating 0 sized array in hash_accept
Date 2016-01-26 15:40 +0100
Message-ID <qVcWM-5sj-57@gated-at.bofh.it> (permalink)
References <qUOhH-3K1-3@gated-at.bofh.it> <qUPQu-4Ie-15@gated-at.bofh.it> <qVbR0-4Hb-1@gated-at.bofh.it> <qVctH-5ef-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 01/26/2016 09:07 AM, Herbert Xu wrote:
> On Tue, Jan 26, 2016 at 08:26:41AM -0500, Sasha Levin wrote:
>> >
>> > This seems to be happening with "digest_null".
> In that case this is expected as digest_null obviously has no
> state.  So why is a zero-length array disallowed by ubsan?

The C spec forbids it, so ubsan complains :)


Thanks,
Sasha

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

crypto: algif_hash: creating 0 sized array in hash_accept Sasha Levin <sasha.levin@oracle.com> - 2016-01-25 13:20 +0100
  Re: crypto: algif_hash: creating 0 sized array in hash_accept Herbert Xu <herbert@gondor.apana.org.au> - 2016-01-25 15:00 +0100
    Re: crypto: algif_hash: creating 0 sized array in hash_accept Sasha Levin <sasha.levin@oracle.com> - 2016-01-26 14:30 +0100
      Re: crypto: algif_hash: creating 0 sized array in hash_accept Herbert Xu <herbert@gondor.apana.org.au> - 2016-01-26 15:10 +0100
        Re: crypto: algif_hash: creating 0 sized array in hash_accept Sasha Levin <sasha.levin@oracle.com> - 2016-01-26 15:40 +0100
          Re: crypto: algif_hash: creating 0 sized array in hash_accept Herbert Xu <herbert@gondor.apana.org.au> - 2016-01-26 15:50 +0100

csiph-web