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

'Małgorzata Olszówka' via openssl-commits <[email protected]> Wed, 08 Jul 2026 02:58:43 -0700
Newsgroups gmane.comp.encryption.openssl.cvs
Message-ID <openssl/openssl/push/refs/heads/openssl-3.5/[email protected]>
  Branch: refs/heads/openssl-3.5
  Home:   https://github.com/openssl/openssl
  Commit: b859876985a06d52c8c370d8d4ac4370d219712d
      https://github.com/openssl/openssl/commit/b859876985a06d52c8c370d8d4ac4370d219712d
  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: ad4e559a800bae8fdf621a3e85a70366504a9a5c
      https://github.com/openssl/openssl/commit/ad4e559a800bae8fdf621a3e85a70366504a9a5c
  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/dba3838f722f...ad4e559a800b

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.5/dba383-ad4e55%40github.com.