[openssl/openssl] a4d8ce: BIO: avoid returning internal FILE * with UPLINK-e...

'Małgorzata Olszówka' via openssl-commits <[email protected]> Wed, 08 Jul 2026 02:54:36 -0700
Newsgroups gmane.comp.encryption.openssl.cvs
Message-ID <openssl/openssl/push/refs/heads/openssl-4.0/[email protected]>
  Branch: refs/heads/openssl-4.0
  Home:   https://github.com/openssl/openssl
  Commit: a4d8ce81eec05314d86cd48baa0c57f3d3f317ca
      https://github.com/openssl/openssl/commit/a4d8ce81eec05314d86cd48baa0c57f3d3f317ca
  Author: olszomal <[email protected]>
  Date:   2026-07-08 (Wed, 08 Jul 2026)

  Changed paths:
    M crypto/bio/bss_file.c
    M doc/man3/BIO_s_file.pod

  Log Message:
  -----------
  BIO: avoid returning internal FILE * with UPLINK-enabled builds on Windows

On Windows with UPLINK enabled, BIO_get_fp() may return a FILE * pointer
incompatible with the C runtime.  Ensure that it returns NULL instead,
preventing undefined behavior in applications.  Update the documentation
to include the missing return type for BIO_[gs]et_fp() and remove
the mention that BIO_get_fp() never returns 0, as it does so now
when NULL fp is returned.

Signed-off-by: olszomal <[email protected]>

Reviewed-by: Dmitry Belyavskiy <[email protected]>
Reviewed-by: Eugene Syromiatnikov <[email protected]>
MergeDate: Wed Jul  8 09:47:40 2026
(Merged from https://github.com/openssl/openssl/pull/28172)

(cherry picked from commit b5b34d32cb98341434dd8b88a13182b0131d9344)


  Commit: 53950c293db68713c2182ea1450c9e8816e8717f
      https://github.com/openssl/openssl/commit/53950c293db68713c2182ea1450c9e8816e8717f
  Author: olszomal <[email protected]>
  Date:   2026-07-08 (Wed, 08 Jul 2026)

  Changed paths:
    M apps/lib/apps.c

  Log Message:
  -----------
  apps: adjust stat usage to account for uplink

Call stat() instead of fstat() when the FILE pointer provided
by BIO_get_fp() is unavailable (as it may be the case in case of UPLINK
builds).

Signed-off-by: olszomal <[email protected]>

Reviewed-by: Dmitry Belyavskiy <[email protected]>
Reviewed-by: Eugene Syromiatnikov <[email protected]>
MergeDate: Wed Jul  8 09:47:42 2026
(Merged from https://github.com/openssl/openssl/pull/28172)

(cherry picked from commit d2a9af2144ac2938619e44af3eaeaed3ea49cb05)


Compare: https://github.com/openssl/openssl/compare/282e767ff4fd...53950c293db6

To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications

-- 
You received this message because you are subscribed to the Google Groups "openssl-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/a/openssl.org/d/msgid/openssl-commits/openssl/openssl/push/refs/heads/openssl-4.0/282e76-53950c%40github.com.