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

'Małgorzata Olszówka' via openssl-commits <[email protected]> Wed, 08 Jul 2026 02:56:36 -0700
Newsgroups gmane.comp.encryption.openssl.cvs
Message-ID <openssl/openssl/push/refs/heads/openssl-3.6/[email protected]>
  Branch: refs/heads/openssl-3.6
  Home:   https://github.com/openssl/openssl
  Commit: 6d022f775eef17c40a99f536dbbfcf2246db2f1e
      https://github.com/openssl/openssl/commit/6d022f775eef17c40a99f536dbbfcf2246db2f1e
  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: 3d0d180029832dc7dea0ee0cba22af3aeb56e131
      https://github.com/openssl/openssl/commit/3d0d180029832dc7dea0ee0cba22af3aeb56e131
  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/eea2928de71a...3d0d18002983

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-3.6/eea292-3d0d18%40github.com.