mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-12-01 16:51:18 +00:00
129da805a1
sw_image.c: 203: The potential null pointer is passed into 'memcpy' function. Inspect the first argument. Check lines: 203, 192. 368: The null pointer is passed into 'free' function. Inspect the first argument. 401: Expression '!pic' is always false. 401: There are two 'if' statements with identical conditional expressions. The first 'if' statement contains function return. This means that the second 'if' statement is senseless. Check lines: 394, 401. 565: The potential null pointer is passed into 'memcpy' function. Inspect the first argument. Check lines: 565, 564. sw_model.c: 215: The 'model' pointer was used unsafely after it was verified against nullptr. Check lines: 210, 215. 985: The 'header->lumps[12].filelen / sizeof (int)' expression was implicitly cast from 'size_t' type to 'float' type. Consider utilizing an explicit type cast to avoid the loss of a fractional part. An example: double A = (double)(X) / Y;. 1277: Function 'RE_BeginRegistration' argument 1 names different: declaration 'map' definition 'model'. sw_surf.c: 239: There might be dereferencing of a potential null pointer 'sc_base'. Check lines: 239, 236. sw_main.c: 1345: The if condition is the same as the previous if condition 1466: Function 'R_GammaCorrectAndSetPalette' argument 1 names different: declaration 'pal' definition 'palette' 2063: The 'swap_buffers' pointer in the expression could be nullptr. In such case, resulting value of arithmetic operations on this pointer will be senseless and it should not be used. Check lines: 2063, 2061. sw_aclip.c: 180: Variable 'j' is reassigned a value before the old one has been used. sw_alias.c: 209: Function 'R_AliasTransformVector' argument 3 names different: declaration 'm' definition 'xf'. sw_draw.c: 78: Function 'RE_Draw_CharScaled' argument 3 names different: declaration 'c' definition 'num'. 149: Function 'RE_Draw_GetPicSize' argument 3 names different: declaration 'name' definition 'pic'. 173: The scope of the variable 'u' can be reduced. 267: Function 'RE_Draw_PicScaled' argument 4 names different: declaration 'factor' definition 'scale'. sw_scan.c 593: Function 'D_DrawSpansPow2' argument 1 names different: declaration 'pspans' definition 'pspan'. 745: Function 'D_DrawZSpans' argument 1 names different: declaration 'pspans' definition 'pspan'. |
||
---|---|---|
.. | ||
backends | ||
client | ||
common | ||
game | ||
server | ||
win-wrapper |