[openssl/openssl] 39f468: asn1: centralize aux const-callback dispatch to av...

"'nikolapajkovsky' via openssl-commits" <[email protected]>
Newsgroups gmane.comp.encryption.openssl.cvs
Message-ID <openssl/openssl/push/refs/heads/master/[email protected]>
  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 39f46844c6e06e26bea34f300c7fc61c06bb20b8
      https://github.com/openssl/openssl/commit/39f46844c6e06e26bea34f300c7fc61c06bb20b8
  Author: Nikola Pajkovsky <[email protected]>
  Date:   2026-06-22 (Mon, 22 Jun 2026)

  Changed paths:
    M crypto/asn1/asn1_local.h
    M crypto/asn1/tasn_enc.c
    M crypto/asn1/tasn_prn.c
    M crypto/asn1/tasn_utl.c

  Log Message:
  -----------
  asn1: centralize aux const-callback dispatch to avoid function pointer cast

Replace the per-call-site `(ASN1_aux_const_cb *)aux->asn1_cb` cast in
ASN1_item_ex_i2d() and asn1_item_print_ctx() with a shared helper,
ossl_asn1_aux_const_cb(), which invokes the legacy non-const callback
through its real type. This avoids the UBSAN function-pointer-type
mismatch while preserving backward compatibility.

Fixes: https://github.com/openssl/project/issues/1970
Signed-off-by: Nikola Pajkovsky <[email protected]>

Reviewed-by: Bob Beck <[email protected]>
Reviewed-by: Eugene Syromiatnikov <[email protected]>
Reviewed-by: Neil Horman <[email protected]>
MergeDate: Sun Jun 21 23:38:12 2026
(Merged from https://github.com/openssl/openssl/pull/31541)



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/master/7a5476-39f468%40github.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.