lsalzman / enet

ENet reliable UDP networking library
MIT License
2.66k stars 667 forks source link

Uninitialized local variables being used #240

Open 0xIsho opened 3 months ago

0xIsho commented 3 months ago

Visual Studio 2022 points out multiple instances of access to uninitialized local variables. Examples: 1 2 3 4

There are other warnings that I'm not entirely sure if valid or false positives, for example, it's warning about enet_protocol_command_size:

C6385: Reading invalid data from 'commandSizes'

C6385 Docs