Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: GitHub issues - opened <github@alsa-project.org>
To: alsa-devel@alsa-project.org
Subject: ubsan: `runtime error: variable length array bound evaluates to non-positive value 0`
Date: Sun,  3 May 2026 03:15:23 +0200 (CEST)	[thread overview]
Message-ID: <18abe93be6e32500-webhooks-bot@alsa-project.org> (raw)
In-Reply-To: <18abe93be60cc200-webhooks-bot@alsa-project.org>

alsa-project/alsa-lib issue #505 was opened from pobrn:

While testing pipewire with a sanitized build of alsa-lib, the following is reported:

<details>

```
/pipewire/subprojects/alsa/src/pcm/pcm.c:7827:4: runtime error: variable length array bound evaluates to non-positive value 0
    #0 0x7b5f909a1e7d in snd_pcm_slave_conf (/pipewire/build/subprojects/alsa/dist/usr/lib/libasound.so.2+0x5a1e7d) (BuildId: 2137baa0902bc081fc7d45192f387a7550800d43)
    #1 0x7b5f90a9e29c in _snd_pcm_empty_open (/pipewire/build/subprojects/alsa/dist/usr/lib/libasound.so.2+0x69e29c) (BuildId: 2137baa0902bc081fc7d45192f387a7550800d43)
    #2 0x7b5f9098bd9a in snd_pcm_open_conf (/pipewire/build/subprojects/alsa/dist/usr/lib/libasound.so.2+0x58bd9a) (BuildId: 2137baa0902bc081fc7d45192f387a7550800d43)
    #3 0x7b5f9098c78e in snd_pcm_open_noupdate (/pipewire/build/subprojects/alsa/dist/usr/lib/libasound.so.2+0x58c78e) (BuildId: 2137baa0902bc081fc7d45192f387a7550800d43)
    #4 0x7b5f9098c9d4 in snd_pcm_open (/pipewire/build/subprojects/alsa/dist/usr/lib/libasound.so.2+0x58c9d4) (BuildId: 2137baa0902bc081fc7d45192f387a7550800d43)
    #5 0x7b5f91ccdf07 in pa_alsa_open_by_device_string ../spa/plugins/alsa/acp/alsa-util.c:716
[...]
```

</details>

While this is probably generally harmless in practice, if there is a simple change to avoid it, it would be nice to have it fixed.

Issue URL     : https://github.com/alsa-project/alsa-lib/issues/505
Repository URL: https://github.com/alsa-project/alsa-lib

           reply	other threads:[~2026-05-03  1:16 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <18abe93be60cc200-webhooks-bot@alsa-project.org>]

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=18abe93be6e32500-webhooks-bot@alsa-project.org \
    --to=github@alsa-project.org \
    --cc=alsa-devel@alsa-project.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