Re: [DNG] int essid_alloc is causing valgrind to report a series of errors

2015-10-15 Thread Rainer Weikusat
Peter Olson writes: >> On October 14, 2015 at 3:20 PM Edward Bartolo wrote: >> >> >> This is another part of the backend code where valgrind is saying: >> >> ==5501== 5 errors in context 1 of 3: >> ==5501== Use of uninitialised value of size 8 >> ==5501==at 0x5172AFC: strtod_l_internal

Re: [DNG] int essid_alloc is causing valgrind to report a series of errors

2015-10-15 Thread Rainer Weikusat
Peter Olson writes: >> On October 14, 2015 at 3:20 PM Edward Bartolo wrote: >> >> >> This is another part of the backend code where valgrind is saying: >> >> ==5501== 5 errors in context 1 of 3: >> ==5501== Use of uninitialised value of size 8 >> ==5501==at 0x5172AFC: strtod_l_internal

Re: [DNG] int essid_alloc is causing valgrind to report a series of errors

2015-10-15 Thread Edward Bartolo
Suppose this is a string in which we are interested: The value of Pi is 3.142 approximately. The index of the space preceding Pi is: 18 - 1 = 17 The index of the space after Pi is: 24 - 1 = 23 The length of the decimal number is: 5 characters, which is also: 23 - 17 - 1 = 5 If we were to copy t

[DNG] Pushed debugged code for backend memory leakages

2015-10-15 Thread Edward Bartolo
Hi, Although, like all software projects, the final debugging phase never ends, I pushed the latest changes to address memory leakages in backend and some programmatic inexactitudes. I would like to also draw attention to an outstanding BUG I discovered. This is exhibited when netman GUI tries to

[DNG] int essid_alloc is causing valgrind to report a series, of errors

2015-10-15 Thread aitor_czr
Hi Edward, You are pointing *result to a pointer 'tmp' declared locally inside the function 'essid_alloc', whose value will be lost outside it... Is it right? Aitor. On 14/10/15 21:29, Edward Bartolo wrote: int essid_alloc( size_t length, char ** result ) { char * t

Re: [DNG] int essid_alloc is causing valgrind to report a series, of errors

2015-10-15 Thread Rainer Weikusat
aitor_czr writes: > Hi Edward, > > You are pointing *result to a pointer 'tmp' declared locally inside > the function 'essid_alloc', whose value will be lost outside it... > > Is it right? No, it's not. At the point of the assignment, the value of tmp is some value returned by calloc. And that's

[DNG] Am I in the Devuan land?

2015-10-15 Thread janpenguin
Hi, Few days ago I upgraded jessie 8.0 to Devuan. After that due to some applications' issues, I went back to jessie 8.2 by replacing package repository servers in /etc/apt/sources.list file. -Computer- Processor : 6x AMD FX(tm)-6100 Six-Core Processor Memory : 7919MB (6