Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 664198 - app-crypt/tpm-emulator-0.7.4-r1 : /.../tpm_deprecated.c:437:7: error: _builtin_memcmp_eq reading 20 bytes from a region of size 8 [-Werror=stringop-overflow=]
Summary: app-crypt/tpm-emulator-0.7.4-r1 : /.../tpm_deprecated.c:437:7: error: _builti...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Crypto team [DISABLED]
URL: https://github.com/PeterHuewe/tpm-emu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-21 18:36 UTC by Toralf Förster
Modified: 2018-09-09 08:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.07 KB, text/plain)
2018-08-21 18:36 UTC, Toralf Förster
Details
app-crypt:tpm-emulator-0.7.4-r1:20180820-231831.log (app-crypt:tpm-emulator-0.7.4-r1:20180820-231831.log,14.37 KB, text/plain)
2018-08-21 18:36 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,144.70 KB, text/plain)
2018-08-21 18:36 UTC, Toralf Förster
Details
environment (environment,158.76 KB, text/plain)
2018-08-21 18:36 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.46 KB, application/x-bzip)
2018-08-21 18:36 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,2.98 KB, application/x-bzip)
2018-08-21 18:36 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,36.82 KB, application/x-bzip)
2018-08-21 18:36 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-08-21 18:36:38 UTC
/var/tmp/portage/app-crypt/tpm-emulator-0.7.4-r1/work/tpm_emulator-0.7.4/tpm/tpm_deprecated.c: In function ‘TPM_ChangeAuthAsymFinish’:
/var/tmp/portage/app-crypt/tpm-emulator-0.7.4-r1/work/tpm_emulator-0.7.4/tpm/tpm_deprecated.c:437:7: error: ‘__builtin_memcmp_eq’ reading 20 bytes from a region of size 8 [-Werror=stringop-overflow=]
   if (memcmp(&b1, &newAuthLink, sizeof(TPM_HMAC))) {
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-developer_libressl_20180816-174630

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0
 [2] x86_64-pc-linux-gnu-7.3.1
 [3] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
  [4]   pypy (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems)
  [2]   ruby25 (with Rubygems) *



emerge -qpv app-crypt/tpm-emulator
[ebuild  N    ] app-crypt/tpm-emulator-0.7.4-r1  USE="libressl modules ssl"
Comment 1 Toralf Förster gentoo-dev 2018-08-21 18:36:41 UTC
Created attachment 544284 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-08-21 18:36:45 UTC
Created attachment 544286 [details]
app-crypt:tpm-emulator-0.7.4-r1:20180820-231831.log
Comment 3 Toralf Förster gentoo-dev 2018-08-21 18:36:47 UTC
Created attachment 544288 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-08-21 18:36:50 UTC
Created attachment 544290 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-08-21 18:36:54 UTC
Created attachment 544292 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-08-21 18:36:56 UTC
Created attachment 544294 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-08-21 18:36:59 UTC
Created attachment 544296 [details]
temp.tbz2
Comment 8 Alon Bar-Lev (RETIRED) gentoo-dev 2018-09-09 08:15:39 UTC
No response from upstream for almost 10 days, I believe the patch is correct, applying.
Comment 9 Larry the Git Cow gentoo-dev 2018-09-09 08:16:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b220ce5e246cfee6691af027c86045a9d1fffe21

commit b220ce5e246cfee6691af027c86045a9d1fffe21
Author:     Alon Bar-Lev <alonbl@gentoo.org>
AuthorDate: 2018-09-09 08:14:32 +0000
Commit:     Alon Bar-Lev <alonbl@gentoo.org>
CommitDate: 2018-09-09 08:15:58 +0000

    app-crypt/tpm-emulator: fix incorrect memcpy
    
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=664198
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 .../files/tpm-emulator-0.7.4-build.patch           | 31 ++++++++++++++++++++++
 .../tpm-emulator/tpm-emulator-0.7.4-r1.ebuild      |  4 +++
 2 files changed, 35 insertions(+)