[PATCH] hackrf: fix buffer underflow

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/osmocom-sdr@lists.osmocom.org/.

P j-pi at seznam.cz
Fri Oct 28 17:46:09 UTC 2016


Hi,

 lib/hackrf/hackrf_source_c.cc | 29 +++++++++++++++++------------
 1 file changed, 17 insertions(+), 12 deletions(-)


this patch fixes SIGSEG wich happens when buffer from GnuRadio is bigger
than buffers used by HackFR. This is due to 'remaining' will become
bigger than size of input buffer. More than available bytes might be
copied and '_samp_avail' become negative. This soon or latter becomes
SIGSEG.

With best regards,
	P


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-hackrf-fix-buffer-underflow.patch
Type: text/x-patch
Size: 1974 bytes
Desc: not available
URL: <http://lists.osmocom.org/pipermail/osmocom-sdr/attachments/20161028/f3848030/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 220 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osmocom.org/pipermail/osmocom-sdr/attachments/20161028/f3848030/attachment-0001.bin>


More information about the osmocom-sdr mailing list