src/share/native/sun/awt/splashscreen/splashscreen_png.c
Print this page
*** 180,190 ****
{
unsigned char sig[SIG_BYTES];
int success = 0;
stream->read(stream, sig, SIG_BYTES);
! if (!png_check_sig(sig, SIG_BYTES)) {
goto done;
}
success = SplashDecodePng(splash, my_png_read_stream, stream);
done:
--- 180,190 ----
{
unsigned char sig[SIG_BYTES];
int success = 0;
stream->read(stream, sig, SIG_BYTES);
! if (png_sig_cmp(sig, 0, SIG_BYTES)) {
goto done;
}
success = SplashDecodePng(splash, my_png_read_stream, stream);
done: