BigPharmaceutical / chessehc

0 stars 0 forks source link

Fix code scanning alert - Multiplication result converted to larger type #4

Closed tomBoddaert closed 1 year ago

tomBoddaert commented 1 year ago

Tracking issue for:

https://github.com/BigPharmaceutical/chessehc/blob/8cd15cb251cbe7ce63235ec88bdd50b61926552d/client/src/graphics.c#L29 CodeQL:

Multiplication result may overflow 'int' before it is converted to 'unsigned long'.

This is not a major concern, as it should not affect any screen with less than 2,147,483,647 pixels, which is significantly higher resolution than any screen on the market.