[ENet-discuss] Possible problems in source code?

Ruud van Gaal ruud at racer.nl
Thu Dec 29 07:57:34 PST 2011


Having just read a blog from John Carmack on static code analysis tools, I
decided to start analyzing my own code. (see
http://altdevblogaday.com/2011/12/24/static-code-analysis/ )
Part of it is ENet, quite the latest version. These are the 3 results:

1>d:\source\trunk\dev\src\libs\enet\peer.cpp(743) : warning C6001: Using
uninitialized memory 'reliableSequenceNumber': Lines: 715, 717, 718, 719,
720, 721, 723, 726, 739, 741, 742, 743
1>d:\source\trunk\dev\src\libs\enet\protocol.cpp(222) : warning C6001:
Using uninitialized memory 'outgoingCommand': Lines: 173, 174, 175, 176,
178, 179, 189, 210, 222
1>d:\source\trunk\dev\src\libs\enet\win32.cpp(244) : warning C6387:
'argument 6' might be '0': this does not adhere to the specification for
the function 'WSASendTo': Lines: 224, 225, 227, 244

Not sure how the first 2 might be problems; perhaps someone else has a
better clue?

Cheers,
Ruud van Gaal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20111229/e6f01400/attachment.html>


More information about the ENet-discuss mailing list