Skip to content

Crash in callback on Legacy streams when device reroutes between calling obtainBuffer() and releaseBuffer() #1763

@philburk

Description

@philburk

We have discovered a bug in AudioTrack that was introduced in 2012.
It can cause an intermittent crash in a data callback due to accessing memory after it has been freed.

It is described in detail in this Tech Note:
https://github.com/google/oboe/wiki/CrashUAF_ObtainReleaseBuffer

It can be reproduced using this new "Routing Stress" test. #1760

Metadata

Metadata

Assignees

Labels

P1high priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions