mp-lee / mandelbulber

Automatically exported from code.google.com/p/mandelbulber
GNU General Public License v3.0
1 stars 0 forks source link

Potential uninitialized variable usage in src/netrender.cpp #29

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
There is a potential usage of an uninitialized variable in src/netrender.cpp at 
line 328. Here is the corresponding code:
....
        //checking client version
        int clientVersion;
....
line 323    if(!strcmp("VER", command) && recvd_bytes == sizeof(int))
        {
            GetData(&clientVersion);
        }

line 328    if(clientVersion == version)
....

If the if-block at line 323 is not executed the value of the variable 
'clientVersion' is undefined.

Best regards and many thanks

Martin Ettl

Original issue reported on code.google.com by ettl.mar...@gmail.com on 19 Jan 2014 at 1:46

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r430.

Original comment by buddhi1...@gmail.com on 29 Jan 2014 at 12:28