Skip to content

Missing NULL Check in obsws_config_init #6

Description

@LinuxMainframe

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 NULL

Impact

  • 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    MAJORNot critical, but also important to fix ASAP

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions