Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

aubuf: avoid underflow of cur_sz #108

Merged
merged 1 commit into from
Nov 9, 2022

Conversation

cspiel1
Copy link
Collaborator

@cspiel1 cspiel1 commented Nov 9, 2022

Frame f in line 256 may be different from f in line 245.

Thus sz may be not the correct size in line 257. (E.g. with opus codec where frames have dynamical size)

Then it happend that ab->cur_sz underflow, so become a very big unsigned int value.

@cspiel1 cspiel1 changed the title aubuf: avoid overflow of cur_sz aubuf: avoid underflow of cur_sz Nov 9, 2022
@cspiel1 cspiel1 force-pushed the aubuf_cur_sz_overrun branch from 8feece5 to 85eeb68 Compare November 9, 2022 07:25
@sreimers sreimers merged commit 3273f62 into baresip:main Nov 9, 2022
@cspiel1 cspiel1 deleted the aubuf_cur_sz_overrun branch November 9, 2022 07:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants