[PATCH] hackrf: fix buffer underflow

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