[srslte-users] Reporting bug in examples/hl_example.c

Ismael Gomez ismael.gomez at softwareradiosystems.com
Mon Oct 5 07:35:33 UTC 2015


Thank you Bhargava, we will fix this bug.

Regards
Ismael

On Mon, 5 Oct 2015 at 07:19 Bhargava Shastry <
bshastry at sec.t-labs.tu-berlin.de> wrote:

> Hi,
>
> I would like to report a bug in the said file [1]. Problem is on line 65
> [Bug report attached]. If one calls hl_example with a negative first
> argument, the program segfaults because of an unchecked failure of malloc.
>
> A fix is to bail out with an error message if nbits is negative *before*
> the call to malloc or use strtoul [2] and assign it to (unsigned long)
> nbits.
>
> [1]:
>
> https://github.com/srsLTE/srsLTE/blob/master/srslte/examples/hl_example.c#L65
> [2]:
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/strtoul.html
>
> Regards,
> Bhargava
> _______________________________________________
> srslte-users mailing list
> srslte-users at lists.softwareradiosystems.com
> http://www.softwareradiosystems.com/mailman/listinfo/srslte-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20151005/2c432228/attachment.htm>


More information about the srsran-users mailing list