Hi Aitor,

Is your list of neighbouring active wifi points larger than 9 or 10?
If that is the case, we may have hit an untested code path. I will
review the code and post back.

Edward

On 06/12/2015, aitor_czr <aitor_...@gnuinos.org> wrote:
> Hi all,
>
> In the case of an automatically attempt to connect with netman, i get
> the following error:
>
> $ ./backend 10
> *** Error in `./backend': realloc(): invalid pointer: 0x00007ffc3deb55f4
> ***
> Aborted
>
> I believe there is an uncontrolled pointer somewhere...
>
> IMHO (:-) ) the line 238 of ''automated_scanner.c':
>
> active_wifi_list = realloc(active_wifis + 10, sizeof(void*));
>
> should be replaced by this other one:
>
> active_wifi_list = realloc(active_wifi_list, (*active_wifis +
> 9)*sizeof(char*));
>
> Cheers,
>
>     Aitor.
>
_______________________________________________
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Reply via email to