gost-engine / engine

A reference implementation of the Russian GOST crypto algorithms for OpenSSL
Apache License 2.0
379 stars 174 forks source link

Не собирается в archlinux #446

Closed ne-vlezay80 closed 1 year ago

ne-vlezay80 commented 1 year ago
[ 18%] Building C object CMakeFiles/gost_core.dir/gost_omac.c.o
[ 19%] Building C object CMakeFiles/gost_core.dir/gost_omac_acpkm.c.o
In function ‘make_kn’,
    inlined from ‘CMAC_ACPKM_Final’ at /home/user/openssl-gost-engine-git/src/engine/gost_omac_acpkm.c:270:5,
    inlined from ‘omac_acpkm_imit_final’ at /home/user/openssl-gost-engine-git/src/engine/gost_omac_acpkm.c:350:5:
/home/user/openssl-gost-engine-git/src/engine/gost_omac_acpkm.c:55:20: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
   55 |         k1[bl - 1] ^= bl == 16 ? 0x87 : 0x1b;
      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/openssl-gost-engine-git/src/engine/gost_omac_acpkm.c: In function ‘omac_acpkm_imit_final’:
/home/user/openssl-gost-engine-git/src/engine/gost_omac_acpkm.c:256:24: note: at offset [-2147483649, -1] into destination object ‘k2’ of size 32
  256 |     unsigned char *k1, k2[EVP_MAX_BLOCK_LENGTH];
      |                        ^~
cc1: all warnings being treated as errors
make[2]: *** [CMakeFiles/gost_core.dir/build.make:202: CMakeFiles/gost_core.dir/gost_omac_acpkm.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:458: CMakeFiles/gost_core.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
beldmit commented 1 year ago

Оторвите -Werror

beldmit commented 1 year ago

Should be fixed by #448