[OpenSSL-1.0.2] TNF local patch - gcc -fstack-protector + alloca(3)

Issue #148 resolved
Takehiko NOZAKI repo owner created an issue

Comments (3)

  1. Takehiko NOZAKI reporter

    i don't like alloca(3) for security reason. but alloca(3) is ok for using with stack protector.

  2. Takehiko NOZAKI reporter
    • changed status to open

    N/vax fail to build.

    --- bn_exp.o ---
    #   compile  libcrypto/bn_exp.o
    /usr/tooldir/bin/vax--netbsdelf-gcc -O1 -fgcse -fstrength-reduce -fgcse-after-reload -std=gnu99  -Werror   -fstack-protector -Wstack-protector   --param ssp-buffer-size=1   --sysroot=/usr/src/obj.vax/destdir.vax -Dlibcrypto -I. -I/usr/src/crypto/external/bsd/openssl/dist/crypto -I/usr/src/crypto/external/bsd/openssl/dist -I/usr/src/crypto/external/bsd/openssl/dist/crypto/asn1 -I/usr/src/crypto/external/bsd/openssl/dist/crypto/evp -I/usr/src/crypto/external/bsd/openssl/dist/crypto/modes -DDSO_DLFCN -DHAVE_DLFCN_H  -D_FORTIFY_SOURCE=2 -c   -I/usr/src/crypto/external/bsd/openssl/dist/crypto/bn /usr/src/crypto/external/bsd/openssl/dist/crypto/bn/bn_exp.c -o bn_exp.o
    cc1: warnings being treated as errors
    /usr/src/crypto/external/bsd/openssl/dist/crypto/bn/bn_exp.c: In function 'BN_mod_exp_mont_consttime':
    /usr/src/crypto/external/bsd/openssl/dist/crypto/bn/bn_exp.c:698: warning: not protecting local variables: variable length buffer
    *** [bn_exp.o] Error code 1
    nbmake: stopped in /usr/src/crypto/external/bsd/openssl/lib/libcrypto
    
  3. Log in to comment