[LAD] jack1 unsafe with accidentally (?) internal exported functions

From: Tito Latini <tito.01beta@email-addr-hidden>
Date: Mon Mar 16 2015 - 20:10:19 EET

Hi, some internal functions are globals and I think it is not what you want
(jack2 seems ok).

For example, a naive way to forbid the creation of other jack clients is:

# tested with jack 0.124.1
gcc -ljack private_club_mode.c
./a.out # prints "JACK compiled with System V SHM support."
echo $? # 0
jack_lsp # no more clients please, segfault (jack_client_open_aux)

/* private_club_mode.c */
#include <jack/jack.h>

int jack_register_server(const char *, int);

int main() {
        return jack_register_server("umpa", 0xDADA);
}

Tito
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Mon Mar 16 20:15:02 2015

This archive was generated by hypermail 2.1.8 : Mon Mar 16 2015 - 20:15:02 EET