-SDL_waylandevents.c : DEREF_OF_NULL
-> Pointer 'window' that can have only NULL value(417 line).
-SDL_test_fuzzer.c : UNREACHABLE_CODE
-> line 261, 400, bufIdx (4 <= [0, 3]) is always false.
Change-Id: Ie5bdd4a4da88a4b3b428f82df2bad9b97dbbbbf9
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
return 0;
}
- int bufIdx = SDLTest_RandomUint8() % index;
- if(bufIdx>=4)
- return 0;
-
- return tempBuf[bufIdx];
-
+ return tempBuf[SDLTest_RandomUint8() % index];
}
return minValue;
}
+ return tempBuf[SDLTest_RandomUint8() % index];
-
- int bufIdx = SDLTest_RandomUint8() % index;
- if(bufIdx>=4)
- return 0;
-
- return tempBuf[bufIdx];
}
input->pointer_focus = window;
SDL_SetMouseFocus(window->sdlwindow);
}
+ else
+ {
+ return;
+ }
_get_normalized_coordinates(window, x, y, &normalized_x, &normalized_y);