On Wed, 25 Nov 2026 07:55:33 GMT, Jayathirth D V <[email protected]> wrote:
>> Timofei Fedotov has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Include limits.h for INT_MAX > > src/java.desktop/share/native/libsplashscreen/splashscreen_png.c line 174: > >> 172: convertRect(&srcRect, &dstRect, CVT_COPY); >> 173: >> 174: SplashInitFrameShape(splash, 0); > > We have scenarios where allocation inside `SplashInitFrameShape()` can fail > and we return before assigning any value to `splash->frames[imageIndex].hRgn` > in `src/java.desktop/windows/native/libsplashscreen/splashscreen_sys.c`. > > Subsequent cleanup can hit this uninitialized object. > > In `src/java.desktop/unix/native/libsplashscreen/splashscreen_sys.c` this is > taken care by initializing `frame->rects` and `frame->numRects`. > > For windows we can do similar thing and initialize > `splash->frames[imageIndex].hRgn = NULL` in `SplashInitFrameShape()`. Done. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/33915#discussion_r4692388463
