[pulseaudio-tickets] [Bug 94740] module zeroconf-discover doesn't detect all sinks on the remote / fails to construct the name for remote sink

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Mar 30 13:58:47 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=94740

--- Comment #3 from Raymond <superquad.vortex2 at gmail.com> ---
do the length exceed PA_NAME_MAX ?

 #define PA_NAME_MAX 128

static bool is_valid_char(char c) {
    return
        (c >= 'a' && c <= 'z') ||
        (c >= 'A' && c <= 'Z') ||
        (c >= '0' && c <= '9') ||
        c == '.' ||
        c == '-' ||
        c == '_';
}

bool pa_namereg_is_valid_name(const char *name) {
    const char *c;

    pa_assert(name);

    if (*name == 0)
        return false;

    for (c = name; *c && (c-name < PA_NAME_MAX); c++)
        if (!is_valid_char(*c))
            return false;

    if (*c)
        return false;

    return true;
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20160330/603cb2e0/attachment.html>


More information about the pulseaudio-bugs mailing list