obs-studio/libobs
gxalpha 71775e3619 libobs: Assure large enough buffer in dstr_from_cfstring
Per the documentation of CFStringGetCString, the buffer provided must be
large enough not just for the string itself, but also for a NUL
terminator. This space for the NUL terminator is currently ignored, and
we just get lucky that CFStringGetMaximumSizeForEncoding often
dramatically overestimates the space required. However, it is possible
to actually hit the maximum with the string itself (for example by using
strings that contain exclusively Chinese characters such as "我"), in
which case the conversion fails. Adding the extra byte for the NUL
terminator fixes this.
At this point, we can also safely assert that our max_size is larger
than zero, silencing a clang analyzer warning that now is no longer
valid.
2024-10-04 13:36:09 -04:00
..
audio-monitoring libobs: Replace circlebuf with deque 2024-01-16 16:45:09 +01:00
callback libobs/callback: Remove unused static-inline function 2024-08-07 17:27:49 -04:00
cmake cmake: Update supported CMake version range to 3.28 and 3.30 2024-09-13 14:42:32 -04:00
data libobs,obs-filters: Use common straight alpha math 2023-11-04 18:12:22 -05:00
graphics libobs/graphics: Add inline qualifier to functions in header files 2024-08-07 17:27:49 -04:00
media-io libobs: Fix sending unclamped audio to output handler 2024-09-26 19:12:34 -04:00
pkgconfig cmake: Fix pkgconfig generation 2022-07-19 09:28:51 -03:00
util libobs: Fix source profiling inactive sources 2024-09-26 18:09:14 -04:00
CMakeLists.txt cmake: Update supported CMake version range to 3.28 and 3.30 2024-09-13 14:42:32 -04:00
obs-audio-controls.c libobs: Remove obs_volmeter_{get,set}_update_interval() 2024-08-28 19:10:27 -04:00
obs-audio-controls.h libobs: Remove obs_volmeter_{get,set}_update_interval() 2024-08-28 19:10:27 -04:00
obs-audio.c libobs: Fix audio doubling with multiple main view mixes 2024-01-25 14:57:03 -05:00
obs-av1.c shared/bpm: Add BPM (Broadcast Performance Metrics) 2024-09-05 16:38:58 -04:00
obs-av1.h shared/bpm: Add BPM (Broadcast Performance Metrics) 2024-09-05 16:38:58 -04:00
obs-avc.c libobs: Fix obs_parse_avc_header missing high profile parameters 2024-05-10 18:14:27 -04:00
obs-avc.h Update copyrights/names 2023-05-20 01:31:18 -07:00
obs-cocoa.m libobs: Assure large enough buffer in dstr_from_cfstring 2024-10-04 13:36:09 -04:00
obs-config.h libobs: Update version to 30.2.2 2024-07-23 11:56:59 -04:00
obs-data.c libobs: Add functions to serialize JSON with default values 2024-05-25 17:29:28 -07:00
obs-data.h libobs: Add functions to serialize JSON with default values 2024-05-25 17:29:28 -07:00
obs-defs.h Update copyrights/names 2023-05-20 01:31:18 -07:00
obs-display.c libobs: Check if adapter can safely fast clear 2023-07-29 16:34:47 -07:00
obs-encoder.c libobs: Add obs_encoder_get_mixer_index 2024-09-12 18:07:19 -04:00
obs-encoder.h libobs: Add encoder packet timing support 2024-09-05 16:38:58 -04:00
obs-ffmpeg-compat.h libobs: Remove compatibility with FFmpeg < 6.1 2024-08-23 13:44:04 -04:00
obs-hevc.c Update copyrights/names 2023-05-20 01:31:18 -07:00
obs-hevc.h Update copyrights/names 2023-05-20 01:31:18 -07:00
obs-hotkey-name-map.c libobs: Use uthash for hotkey name map 2023-03-18 10:47:49 +01:00
obs-hotkey.c libobs: Remove obs_hotkey_enable_strict_modifiers() 2024-08-28 19:10:27 -04:00
obs-hotkey.h libobs: Remove obs_hotkey_enable_strict_modifiers() 2024-08-28 19:10:27 -04:00
obs-hotkeys.h libobs: Remove _WIN32 ifdef from enum 2019-11-17 20:30:42 -08:00
obs-interaction.h Update copyrights/names 2023-05-20 01:31:18 -07:00
obs-internal.h shared/bpm: Add BPM (Broadcast Performance Metrics) 2024-09-05 16:38:58 -04:00
obs-missing-files.c libobs: Add missing file API to sources 2021-01-17 10:31:58 +13:00
obs-missing-files.h libobs: Add missing file API to sources 2021-01-17 10:31:58 +13:00
obs-module.c libobs: Add OBS_ENCODER_CAP_SCALING 2024-08-23 14:20:53 -04:00
obs-module.h CI: Update to clang-format 16 2023-08-10 16:07:25 -04:00
obs-nal.c Update copyrights/names 2023-05-20 01:31:18 -07:00
obs-nal.h Update copyrights/names 2023-05-20 01:31:18 -07:00
obs-nix-platform.c libobs: Rename OBS_NIX_PLATFORM_X11_GLX to OBS_NIX_PLATFORM_INVALID 2024-08-28 19:10:27 -04:00
obs-nix-platform.h libobs: Rename OBS_NIX_PLATFORM_X11_GLX to OBS_NIX_PLATFORM_INVALID 2024-08-28 19:10:27 -04:00
obs-nix-wayland.c libobs: Add media key support for linux 2022-10-29 16:08:16 -07:00
obs-nix-wayland.h libobs: Add a Wayland platform 2021-02-09 09:39:04 -03:00
obs-nix-x11.c Update copyrights/names 2023-05-20 01:31:18 -07:00
obs-nix-x11.h libobs/nix: Move X11-specific code to obs-nix-x11.c 2021-02-01 19:03:43 -03:00
obs-nix.c libobs: Fix relocatable Linux builds using legacy portable build flag 2024-04-16 12:46:51 -04:00
obs-nix.h libobs/nix: Move X11-specific code to obs-nix-x11.c 2021-02-01 19:03:43 -03:00
obs-output-delay.c libobs: Remove obs_output_signal_delay 2024-09-16 16:29:27 -04:00
obs-output.c libobs: Do not attempt to reconnect if stop event is set 2024-10-03 16:11:20 -04:00
obs-output.h libobs: Add encoder packet timing support 2024-09-05 16:38:58 -04:00
obs-properties.c libobs: Remove obs_proprety_text_type() 2024-08-28 19:10:27 -04:00
obs-properties.h libobs: Remove obs_proprety_text_type() 2024-08-28 19:10:27 -04:00
obs-scene.c libobs: Disable transform debug logging by default 2024-09-26 17:46:47 -04:00
obs-scene.h libobs: Allow scene items to use legacy absolute mode 2024-08-27 23:58:51 +02:00
obs-service.c docs,libobs: Remove deprecated service APIs 2024-08-28 19:10:27 -04:00
obs-service.h libobs: Add bearer token to obs_service_connect_info 2023-06-09 20:20:49 -05:00
obs-source-deinterlace.c Update copyrights/names 2023-05-20 01:31:18 -07:00
obs-source-transition.c libobs: Remove unused static-inline functions 2024-08-07 17:27:49 -04:00
obs-source.c libobs: Add source profiler 2024-08-10 23:51:39 -07:00
obs-source.h libobs: Add obs_source_info.filter_add 2023-07-29 16:15:21 -07:00
obs-video-gpu-encode.c libobs: Add encoder packet timing support 2024-09-05 16:38:58 -04:00
obs-video.c libobs: Add source profiler 2024-08-10 23:51:39 -07:00
obs-view.c libobs: Add obs_view_enum_video_info 2023-12-02 18:05:55 -06:00
obs-win-crash-handler.c Update copyrights/names 2023-05-20 01:31:18 -07:00
obs-windows.c cmake: Add changes for CMake build framework 3.0 2023-06-29 10:11:32 -04:00
obs.c docs,libobs: Remove master volume functions 2024-08-28 19:10:27 -04:00
obs.h libobs: Deprecate obs_scene_sceneitem_from_source 2024-09-27 17:22:44 -04:00
obs.hpp CI: Update to clang-format 16 2023-08-10 16:07:25 -04:00
obsconfig.h.in cmake/libobs: Only set beta/rc increment 2023-10-06 17:21:51 -06:00
obsversion.c.in libobs: Use static library for version string information 2023-05-27 16:48:24 -07:00
obsversion.h libobs: Use static library for version string information 2023-05-27 16:48:24 -07:00