[openssl/openssl] 06a0d4: Fix error handling in pipelining test

Bernd Edlinger noreply at github.com
Mon Jul 24 09:05:17 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 06a0d40322e96dbba816b35f82226871f635ec5a
      https://github.com/openssl/openssl/commit/06a0d40322e96dbba816b35f82226871f635ec5a
  Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
  Date:   2023-07-24 (Mon, 24 Jul 2023)

  Changed paths:
    M test/sslapitest.c

  Log Message:
  -----------
  Fix error handling in pipelining test

When an early error happens in the test_pipelining
function and idx == 5 the error handling would try
to call OPENSSL_free(msg), but msg is at that time
just a string constant in read-only memory, so a
crash would be the result. Fixed that by using
fragsize as an indication when to free msg.

Reviewed-by: Tom Cosgrove <tom.cosgrove at arm.com>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21512)




More information about the openssl-commits mailing list