Bug #5922 ยป 0001-Fixed-rtl_sdr-bytes_to_read-wraparound-for-n-2-31.patch
src/rtl_sdr.c | ||
---|---|---|
40 | 40 |
#define MAXIMAL_BUF_LENGTH (256 * 16384) |
41 | 41 | |
42 | 42 |
static int do_exit = 0; |
43 |
static uint32_t bytes_to_read = 0;
|
|
43 |
static uint64_t bytes_to_read = 0;
|
|
44 | 44 |
static rtlsdr_dev_t *dev = NULL; |
45 | 45 | |
46 | 46 |
void usage(void) |
... | ... | |
144 | 144 |
out_block_size = (uint32_t)atof(optarg); |
145 | 145 |
break; |
146 | 146 |
case 'n': |
147 |
bytes_to_read = (uint32_t)atof(optarg) * 2;
|
|
147 |
bytes_to_read = (uint64_t)atol(optarg) * 2;
|
|
148 | 148 |
break; |
149 | 149 |
case 'S': |
150 | 150 |
sync_mode = 1; |