Bug#920477: gnutls-bin: gnutls-cli benchmark outputs wrong results in 32bit arch

Andreas Metzler ametzler at bebt.de
Sat Jan 26 07:04:10 GMT 2019


Control: forwarded -1 https://gitlab.com/gnutls/gnutls/issues/685

On 2019-01-26 Hiroyuki YAMAMORI <h-yamamo at db3.so-net.ne.jp> wrote:
> Package: gnutls-bin
> Version: 3.6.5-2
> Severity: normal

> Dear Maintainer,

> Some fast ciphers(suites) are strange results.

> $ gnutls-cli --benchmark-ciphers
> Checking AEAD ciphers, payload size: 16384
>              AES-128-GCM 96.93 MB/sec
>              AES-128-CCM 0.31 GB/sec
>        CHACHA20-POLY1305 157.18 MB/sec
> (snip)
>                     NULL 177.63 MB/sec
[...]
> The following code is the cause.

> "gnutls-3.6.5/src/benchmark.h" line 45

> struct benchmark_st {
>         struct timespec start;
>         unsigned long size;      <== 32bit in i386 arch.
[...]
> This size variable will overflow.

Thank you for report and diagnosis, I have forwarded the bug upstream.

cu Andreas

-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'



More information about the Pkg-gnutls-maint mailing list