:: [DNG] Pointer error in the backend …
Page principale
Supprimer ce message
Répondre à ce message
Auteur: aitor_czr
Date:  
À: Edward Bartolo, dng
Sujet: [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.