Linux bluetooth development
 help / color / mirror / Atom feed
From: hudsonzuo <noreply@github.com>
To: linux-bluetooth@vger.kernel.org
Subject: [bluez/bluez] faa9d5: lib: Add bt_realloc
Date: Thu, 23 Jul 2026 02:14:30 -0700	[thread overview]
Message-ID: <bluez/bluez/push/refs/heads/1133053/000000-faa9d5@github.com> (raw)

  Branch: refs/heads/1133053
  Home:   https://github.com/bluez/bluez
  Commit: faa9d5c52f9083c39c6bae7c3eef18de3b6910f9
      https://github.com/bluez/bluez/commit/faa9d5c52f9083c39c6bae7c3eef18de3b6910f9
  Author: zuohsh <zuohongsheng@kylinos.cn>
  Date:   2026-07-23 (Thu, 23 Jul 2026)

  Changed paths:
    M lib/bluetooth/bluetooth.c
    M lib/bluetooth/bluetooth.h
    M lib/bluetooth/sdp.c
    M src/shared/ad.c
    M src/shared/bap.c

  Log Message:
  -----------
  lib: Add bt_realloc

Add a bt_realloc wrapper that takes a pointer-to-pointer and only updates
the original on success, so that a failed realloc cannot leak the
existing buffer or leave a NULL pointer for the caller to dereference.

shared/ad: use bt_realloc in bt_ad_add_data(),
           bt_ad_add_manufacturer_data() and  bt_ad_add_service_data().
shared/bap: use  bt_realloc in ascs_ase_rsp_add().
lib/sdp: use bt_realloc in sdp_service_attr_req(), sdp_process() and
        sdp_service_search_attr_req().



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

                 reply	other threads:[~2026-07-23  9:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bluez/bluez/push/refs/heads/1133053/000000-faa9d5@github.com \
    --to=noreply@github.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox