:: [DNG] Pointer error in the backend …
Startseite
Nachricht löschen
Nachricht beantworten
Autor: aitor_czr
Datum:  
To: Edward Bartolo, dng
Betreff: [DNG] Pointer error in the backend of Netman
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.