Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] A double free bug in src/audio/audio.c #93

Open
ShangzhiXu opened this issue Apr 4, 2023 · 1 comment
Open

[BUG] A double free bug in src/audio/audio.c #93

ShangzhiXu opened this issue Apr 4, 2023 · 1 comment

Comments

@ShangzhiXu
Copy link

ShangzhiXu commented Apr 4, 2023

In audio.c, line 114, we will call
abuf = nbuf;
and then in line 186-188

	    cst_free(nbuf);
	    if (abuf != buff)
		cst_free(abuf);

now that abuf = nbuf, so abuf != buff is true. it will lead to a double free bug here

@adr-adr
Copy link

adr-adr commented Jan 30, 2024

nbuf has been assigned to a new allocated memory chunk. Please close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants