-
Notifications
You must be signed in to change notification settings - Fork 121
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
plc_fillin
can overflow the input buffer
#43
Comments
Hi @MathieuDuponchelle |
Hey @andywolk , I wish, but I'm completely unfamiliar with the code base. Perhaps if you guide me through the correct solution I can propose something, but that will probably not be very efficient :) |
That problem should now be fixed. There was a test in the normal receive function that was missing in the fillin version. |
@coppice-git shouldn't the file sit in src/ not in root? |
Yeah. I just screwed up, while trying to sort out my access to the repo. It should be fixed now. |
…ure a number of samples > "len" is never returned is missing from plc_fillin.
Great, thanks! To be honest though I don't remember how I was testing this so can't confirm the fix works :) |
When calling
plc_fillin
withplc_state_t *s
ands->missing_samples == 0
, the function attempts to writepitch_overlap
bytes to the input buffer, regardless of its length. This causes crashes in a GStreamer application using thespandsp
plugin, because it might callplc_fillin
with very small buffers (eg with my test case 2-byte long).Can the documentation of
plc_fillin
be updated to specify the minimum size of its input buffers, or even better the function be fixed to support any-sized buffers?Thanks!
The text was updated successfully, but these errors were encountered: