-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
MAJORNot critical, but also important to fix ASAPNot critical, but also important to fix ASAP
Description
Major: Missing NULL Check in obsws_config_init
Priority: MAJOR
Type: API Safety
Location
libwsv5.c line 1719 in obsws_config_init()
Issue
Function doesn't validate input parameter:
void obsws_config_init(obsws_config_t *config) {
memset(config, 0, sizeof(obsws_config_t)); // ← Crashes if config is NULLImpact
- Calling with NULL pointer causes immediate crash
- No graceful error handling
- Inconsistent with other functions that check parameters
Recommendation: Add NULL checks to all public API functions for consistency.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
MAJORNot critical, but also important to fix ASAPNot critical, but also important to fix ASAP