Skip to content

[DiD] test/equihash_tests.cpp: [-Wstack-protector] #4

@nimbosa

Description

@nimbosa

stack protector not protecting local variables

Can you reliably reproduce the issue?

If so, please list the steps to reproduce below:

  1. git clone https://github.com/ZclassicDev/zclassic.git && cd zclassic
  2. git reset --hard 0082b67
  3. ./zcutil/build-win.sh -j$(nproc)

Expected behaviour

build without warnings

Actual behaviour + errors

In function ‘void equihash_tests::TestEquihashSolvers(unsigned int, unsigned int, const string&, const arith_uint256&, const std::set<std::vector<unsigned int> >&)’:
test/equihash_tests.cpp:48:6: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]

The version of Zclassic / Zcash you were using:

Zclassic / Zcash 1.0.14

Machine specs:

  • OS name + version: Ubuntu 16.04.4 LTS
  • Linux kernel version (uname -a): Linux *** 4.4.0-1049-aws Release v1.0.5a OSX damaged. z-classic/zclassic#58-Ubuntu SMP Fri Jan 12 23:17:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
  • Compiler version (gcc --version): gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609

For reporting security vulnerabilities or for sensitive discussions with our security team, please contact [email protected]. You can use the GPG key (fingerprint: AF85 0445 546C 18B7 86F9 2C62 88FB 8B86 D8B5 A68C) to send an encrypted message. The key and fingerprint are duplicated on our Public Keys page.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions