lsalzman / enet

ENet reliable UDP networking library
MIT License
2.78k stars 675 forks source link

Uninitialized local variables being used #240

Open 0xIsho opened 7 months ago

0xIsho commented 7 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