1. 31 7月, 2019 1 次提交
    • B
      Use OPENSSL_strlcpy instead of strncpy in e_afalg.c · 74f4cc02
      Bernd Edlinger 提交于
      This avoids a spurious gcc warning:
      ./config enable-asan --strict-warnings
      =>
      In function 'afalg_create_sk',
          inlined from 'afalg_cipher_init' at engines/e_afalg.c:545:11:
      engines/e_afalg.c:376:5: error: '__builtin_strncpy' output may be
          truncated copying 63 bytes from a string of length 63 [-Werror=stringop-truncation]
        376 |     strncpy((char *) sa.salg_name, ciphername, ALG_MAX_SALG_NAME);
            |     ^~~~~~~
      
      [extended tests]
      Reviewed-by: NPaul Dale <paul.dale@oracle.com>
      (Merged from https://github.com/openssl/openssl/pull/9478)
      
      (cherry picked from commit 62cc845fc955c8d4de7b703f57bfd8e5854f00f4)
      74f4cc02
  2. 29 7月, 2019 1 次提交
  3. 26 7月, 2019 1 次提交
  4. 25 7月, 2019 1 次提交
    • R
      Fix default installation paths on mingw · 54aa9d51
      Richard Levitte 提交于
      Mingw config targets assumed that resulting programs and libraries are
      installed in a Unix-like environment and the default installation
      prefix was therefore set to '/usr/local'.
      
      However, mingw programs are installed in a Windows environment, and
      the installation directories should therefore have Windows defaults,
      i.e. the same kind of defaults as the VC config targets.
      
      A difficulty is, however, that a "cross compiled" build can't figure
      out the system defaults from environment the same way it's done when
      building "natively", so we have to fall back to hard coded defaults in
      that case.
      
      Tests can still be performed when cross compiled on a non-Windows
      platform, since all tests only depend on the source and build
      directory, and otherwise relies on normal local paths.
      
      CVE-2019-1552
      Reviewed-by: NMatt Caswell <matt@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/9400)
      54aa9d51
  5. 23 7月, 2019 2 次提交
  6. 24 7月, 2019 5 次提交
  7. 23 7月, 2019 1 次提交
  8. 21 7月, 2019 1 次提交
  9. 20 7月, 2019 1 次提交
  10. 18 7月, 2019 3 次提交
  11. 17 7月, 2019 2 次提交
  12. 16 7月, 2019 3 次提交
  13. 15 7月, 2019 1 次提交
  14. 11 7月, 2019 1 次提交
  15. 08 7月, 2019 4 次提交
  16. 07 7月, 2019 1 次提交
  17. 04 7月, 2019 1 次提交
  18. 03 7月, 2019 1 次提交
    • M
      Adding Test.pm with workaround for Perl abs2rel bug · 374cab63
      Martin Peylo 提交于
      If SRCTOP != BLDTOP, and SRCTOP is given in relative form, e.g.
      "./config ../openssl", then a bug in Perl's abs2rel may trigger that directory-
      rewriting in __cwd results in wrong entries in %directories under certain
      circumstances, e.g. when a test executes run(app(["openssl"]) after indir.
      
      There should not be any need to go to a higher directory from BLDDIR or SRCDIR,
      so it should be OK to use them in their absolute form, also resolving all
      possible symlinks, right from the start.
      
      Following the File::Spec::Functions bug description (reported to perl.org):
      
      When abs2rel gets a path argument with ..s that are crossing over the ..s
      trailing the base argument, the result is wrong.
      
      Example
      PATH: /home/goal/test/..
      BASE: /home/goal/test/../../base
      Good result: ../goal
      Bad  result: ../..
      
      Bug verified with File::Spec versions
      - 3.6301
      - 3.74 (latest)
      Reviewed-by: NMatt Caswell <matt@openssl.org>
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/7031)
      
      (cherry picked from commit 7a2027240e1d01f7f5b209998d1de36af221b34b)
      374cab63
  19. 02 7月, 2019 4 次提交
  20. 01 7月, 2019 2 次提交
  21. 27 6月, 2019 2 次提交
  22. 25 6月, 2019 1 次提交