Bugzilla – Bug 1501
Some effects crash allocating memory for extreme inputs
Last modified: 2018-08-20 11:51:53 UTC
Described in steps are two known cases where unchecked extreme values of user inputs affect calculation of memory buffer sizes requested from the allocator. I will fix these two effects with try-catch blocks. I don't yet know if there are other examples, or what an appropriate general fix at the level of Effect.cpp would be.
Fixed here, but... https://github.com/audacity/audacity/commit/36ddd9875713719e2b253a18d23c4341bb4aacf9 ... Gale may wish to change the user-visible error messages I added.
https://github.com/audacity/audacity/commit/38ee7c0e3e3933c2aac19530ea897ad0787893bc This fixes a similar crash that could happen with Find Clipping of the Analyze menu.
(In reply to Paul L from comment #1) I made this a summary bug. It can open and close when necessary if we are making fixes in individual effects for now. Fixes seem OK to me (including the message wording) though a user trying to find an extreme value that can actually get processed might argue we should reopen the effect (or not close it and return to it). A similar problem is endemic with Nyquist effects that load the entire selection into RAM: bug 1285.