interp_resampler_pfb crashes with huge samples

Francisco Albani <[email protected]> Wed, 11 Mar 2026 16:12:14 -0300
Newsgroups gmane.comp.gnu.radio.general
Message-ID <CAAGU92mVeotjc1QMjpe20X619DZH1fyZKdDP639mtcaAegpqvw@mail.gmail.com>
--000000000000929a70064cc46ac8
Content-Type: text/plain; charset="UTF-8"

Hi all!

Here
<https://github.com/gnuradio/gnuradio/blob/e2c22a2b30142def4bf62c0db8f157780574c840/gr-digital/lib/interpolating_resampler.cc#L439>
you can see that when the polyphase interpolator computes an index out of
bounds it throws a runtime error instead of just truncating or wrapping it
around.

We've encountered a situation in which a normal stream coming from a SDR
has a few huge samples (~ 1e28) and this block crashes the entire flowgraph.

From my understanding of polyphase filters (thanks fharris&trondeau!),
wouldn't it be better to just wrap it?

Thanks!

Francisco.

--000000000000929a70064cc46ac8
Content-Type: text/html; charset="UTF-8"

<div dir="ltr"><p>Hi all!</p><p dir="auto"><a href="https://github.com/gnuradio/gnuradio/blob/e2c22a2b30142def4bf62c0db8f157780574c840/gr-digital/lib/interpolating_resampler.cc#L439">Here</a>
 you can see that when the polyphase interpolator computes an index out 
of bounds it throws a runtime error instead of just truncating or 
wrapping it around.</p>
<p dir="auto">We&#39;ve encountered a situation in which a normal stream 
coming from a SDR has a few huge samples (~ 1e28) and this block crashes
 the entire flowgraph.</p><p dir="auto">From my understanding of polyphase filters (thanks fharris&amp;trondeau!), wouldn&#39;t it be better to just wrap it?</p><p dir="auto">Thanks!</p><p>Francisco.</p></div>

--000000000000929a70064cc46ac8--