pulseaudio/src/pulse
Igor V. Kovalenko 81a6cc4967 Fix crash running in restricted environment.
When `pwd.h` header is not available (i.e. not using glibc) and environment
variables are not set (e.g. running via `env --ignore-environment`) client
library would crash due to uninitialized variable in `pa_get_home_dir()`.
Add missing initialization to fix that.

Fixes: #3792
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/800>
2023-11-12 15:53:38 +03:00
..
.gitignore add another .gitignore file, this time for pulse/ 2008-06-18 00:47:32 +02:00
cdecl.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
channelmap.c channelmap: make channel map tables static 2021-12-17 23:39:15 +00:00
channelmap.h api documentation improvements 2017-11-30 00:43:57 +02:00
client-conf-x11.c client-conf: Avoid loading X11 properties unless SSH_CONNECTION is set 2019-08-27 08:27:16 +00:00
client-conf-x11.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
client-conf.c client-conf: Add a default value for disable-memfd 2017-12-04 07:36:19 +05:30
client-conf.h client audio: Support memfd transport 2016-04-27 18:37:07 +05:30
client.conf.in update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
context.c daemon: Add support for running as a service on win32 2021-06-16 09:17:27 +00:00
context.h context: pa_context_get_tile_size: constify 2018-06-26 11:51:18 +03:00
def.h Improve the port available_group and type documentation 2020-08-10 20:54:21 +03:00
direction.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
direction.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
error.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
error.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
ext-device-manager.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
ext-device-manager.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
ext-device-restore.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
ext-device-restore.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
ext-stream-restore.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
ext-stream-restore.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
fork-detect.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
fork-detect.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
format.c json: remove json from public API 2021-06-03 21:15:48 +00:00
format.h Point to SupportedAudioFormats wiki page where appropriate 2020-04-23 15:24:24 +00:00
gccmacro.h win32: Use __MINGW_PRINTF_FORMAT instead of __printf__ for MinGW builds 2021-01-13 03:42:24 +00:00
glib-mainloop.c glib-mainloop: Drop deprecated g_get_current_time() usage 2020-11-23 19:02:33 +00:00
glib-mainloop.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
internal.h stream: Allow stream.c to use alternative smoother code 2021-11-03 21:13:38 +00:00
introspect.c introspect: Add version check to pa_context_send_message_to_object() 2020-12-03 14:41:39 +00:00
introspect.h pactl: Implement list message-handlers 2020-12-03 14:41:39 +00:00
libpulse.def meson: Add DEF file to export APIs in Windows 2023-03-16 13:05:44 +05:30
mainloop-api.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
mainloop-api.h api documentation improvements 2017-11-30 00:43:57 +02:00
mainloop-signal.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
mainloop-signal.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
mainloop.c win32: Fix WSAStartup issues 2021-01-13 03:16:06 +00:00
mainloop.h Revert "mainloop: fix timeout assignment in pa_mainloop_prepare" 2020-11-23 18:05:27 +00:00
map-file json: remove json from public API 2021-06-03 21:15:48 +00:00
meson.build meson: Add DEF file to export APIs in Windows 2023-03-16 13:05:44 +05:30
operation.c operation: avoid state change from final state 2018-07-16 12:47:00 +03:00
operation.h operation: pa_operation_get_state: constify 2018-06-21 06:30:25 +05:30
proplist.c proplist: pa_proplist_equal: constify proplist pointers 2018-06-21 06:30:25 +05:30
proplist.h proplist: tweak documentation for pa_proplist_get() 2021-04-09 01:47:58 +01:00
pulseaudio.h api documentation improvements 2017-11-30 00:43:57 +02:00
rtclock.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
rtclock.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
sample.c sample.c: Allow module-loopback to exceed PA_RATE_MAX 2017-04-14 15:03:56 +02:00
sample.h alsa-util: Add more standard sample rates. 2023-02-06 18:48:56 +00:00
scache.c scache: pa_context_play_sample_with_proplist: constify proplist param 2018-06-21 06:30:25 +05:30
scache.h scache: pa_context_play_sample_with_proplist: constify proplist param 2018-06-21 06:30:25 +05:30
simple.c Fix typo: substract -> subtract 2018-09-17 10:03:55 -07:00
simple.h api documentation improvements 2017-11-30 00:43:57 +02:00
stream.c pstream: Pass frame size to keep split memblock parts aligned 2023-02-10 12:45:48 +00:00
stream.h stream: clarify the meaning of NULL device 2019-12-21 09:58:57 +02:00
subscribe.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
subscribe.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
thread-mainloop.c thread-mainloop: Release once_unlocked_data object after callback 2021-10-06 14:18:24 +00:00
thread-mainloop.h thread-mainloop: Extend the locking documentation a bit 2020-05-27 09:41:40 +03:00
timeval.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
timeval.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
utf8.c api documentation improvements 2017-11-30 00:43:57 +02:00
utf8.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
util.c Fix crash running in restricted environment. 2023-11-12 15:53:38 +03:00
util.h core: Expose API to elevate a thread to realtime priority 2018-06-21 06:29:32 +05:30
version.h.in update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
volume.c volume: pa_cvolume_get_position: constify 2018-06-21 06:30:25 +05:30
volume.h volume: Fix typo 2022-07-18 14:47:38 +00:00
xmalloc.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
xmalloc.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00