Skip to content

baresip: srtp decoding problems with apple clang 16 #3240

@njeisecke

Description

@njeisecke

Since building with XCode 16.1 (which brings apple clang 16.0.0) srtp decryption breaks down after some (varying) time, it can be seconds, it can be a few minutes until breakdown. Sending audio continues to work, received audio is just white noise.

This should be reproducible with a default release build of a recent baresip version using XCode 16.1 on an Intel Mac (not sure if this also occurs on Apple Silicon).

Workaround is to disable optimization for srtp/misc.c in libre:

if (APPLE)
  set_source_files_properties(src/srtp/misc.c PROPERTIES COMPILE_FLAGS -O0)
endif()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions