diff options
author | Tom Rondeau <tom@trondeau.com> | 2016-01-27 11:21:25 -0500 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2016-01-27 11:21:25 -0500 |
commit | 9606e1f92541f4495973bc78d4cba0f053949042 (patch) | |
tree | 1baa6ed1f415a80b2bfc4ff5b7ed62cf755096b7 /gr-zeromq/lib/req_source_impl.cc | |
parent | 4ce1d4991f41173d6e2e6469f6b61e205b7172a5 (diff) |
runtime: addresses issue 768.
Because of the data types in use here, d_ninput_items_required can
overflow and become negative, which then causes bad addressing of the
input buffer in a block's work function. Even if we were using
unsigned types, we might still have situations of overflow; it
wouldn't crash in this case but cause wrong addressing, anyways.
We might be able to catch and handle this situation better. This fix
tests for the condition and shuts down the flowgraph with an error
message. Basically, parameters that cause this effect are well out of
bounds of what we want to handle, anyways.
Diffstat (limited to 'gr-zeromq/lib/req_source_impl.cc')
0 files changed, 0 insertions, 0 deletions