src/java.desktop/share/native/libsplashscreen/splashscreen_impl.h
author ihse
Wed, 28 Mar 2018 23:56:08 +0200
changeset 49440 396ea30afbd5
parent 47216 71c04702a3d5
child 49843 e0af66d6e968
permissions -rw-r--r--
8200178: Remove mapfiles for JDK native libraries Reviewed-by: erikj, alanb, mchung, prr, weijun
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
49440
396ea30afbd5 8200178: Remove mapfiles for JDK native libraries
ihse
parents: 47216
diff changeset
     2
 * Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2608
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2608
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2608
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2608
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2608
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
#ifndef SPLASHSCREEN_IMPL_H
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
#define SPLASHSCREEN_IMPL_H
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
#include "splashscreen_config.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
#include "splashscreen_gfx.h"
36907
c3d8383e3efb 8145173: HiDPI splash screen support on Windows
rchamyal
parents: 25859
diff changeset
    31
#include "jni.h"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
49440
396ea30afbd5 8200178: Remove mapfiles for JDK native libraries
ihse
parents: 47216
diff changeset
    33
JNIEXPORT int JNICALL
396ea30afbd5 8200178: Remove mapfiles for JDK native libraries
ihse
parents: 47216
diff changeset
    34
SplashLoadMemory(void *pdata, int size); /* requires preloading the file */
396ea30afbd5 8200178: Remove mapfiles for JDK native libraries
ihse
parents: 47216
diff changeset
    35
396ea30afbd5 8200178: Remove mapfiles for JDK native libraries
ihse
parents: 47216
diff changeset
    36
JNIEXPORT int JNICALL
396ea30afbd5 8200178: Remove mapfiles for JDK native libraries
ihse
parents: 47216
diff changeset
    37
SplashLoadFile(const char *filename);  // FIXME: range checking for SplashLoadMemory
396ea30afbd5 8200178: Remove mapfiles for JDK native libraries
ihse
parents: 47216
diff changeset
    38
396ea30afbd5 8200178: Remove mapfiles for JDK native libraries
ihse
parents: 47216
diff changeset
    39
JNIEXPORT void JNICALL
396ea30afbd5 8200178: Remove mapfiles for JDK native libraries
ihse
parents: 47216
diff changeset
    40
SplashInit(void);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
49440
396ea30afbd5 8200178: Remove mapfiles for JDK native libraries
ihse
parents: 47216
diff changeset
    42
JNIEXPORT void JNICALL
396ea30afbd5 8200178: Remove mapfiles for JDK native libraries
ihse
parents: 47216
diff changeset
    43
SplashClose(void);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
49440
396ea30afbd5 8200178: Remove mapfiles for JDK native libraries
ihse
parents: 47216
diff changeset
    45
JNIEXPORT void JNICALL
396ea30afbd5 8200178: Remove mapfiles for JDK native libraries
ihse
parents: 47216
diff changeset
    46
SplashSetScaleFactor(float);
396ea30afbd5 8200178: Remove mapfiles for JDK native libraries
ihse
parents: 47216
diff changeset
    47
396ea30afbd5 8200178: Remove mapfiles for JDK native libraries
ihse
parents: 47216
diff changeset
    48
JNIEXPORT jboolean JNICALL
396ea30afbd5 8200178: Remove mapfiles for JDK native libraries
ihse
parents: 47216
diff changeset
    49
SplashGetScaledImageName(const char*, const char*,
36907
c3d8383e3efb 8145173: HiDPI splash screen support on Windows
rchamyal
parents: 25859
diff changeset
    50
                              float*, char*, const size_t scaledImageNameLength);
25552
96abb01815f6 8043869: [macosx] java -splash does not honor @2x hi dpi notation for retina support
alexsch
parents: 23010
diff changeset
    51
49440
396ea30afbd5 8200178: Remove mapfiles for JDK native libraries
ihse
parents: 47216
diff changeset
    52
JNIEXPORT void JNICALL
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
SplashSetFileJarName(const char* fileName, const char* jarName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
49440
396ea30afbd5 8200178: Remove mapfiles for JDK native libraries
ihse
parents: 47216
diff changeset
    55
JNIEXPORT int JNICALL
36907
c3d8383e3efb 8145173: HiDPI splash screen support on Windows
rchamyal
parents: 25859
diff changeset
    56
SplashGetScaledImgNameMaxPstfixLen(const char*);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
typedef struct SplashImage
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
    rgbquad_t *bitmapBits;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
    int delay;                  /* before next image display, in msec                                                       */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
#if defined(WITH_WIN32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
    HRGN hRgn;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
#elif defined(WITH_X11)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
    XRectangle *rects;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
    int numRects;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
#endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
} SplashImage;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
#define SPLASH_COLOR_MAP_SIZE 0x100
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
typedef struct Splash
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
    ImageFormat screenFormat;   /* must be preset before image decoding */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
    DitherSettings dithers[3];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
    ImageFormat imageFormat;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
    rgbquad_t colorMap[SPLASH_COLOR_MAP_SIZE];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
    int byteAlignment;          /* must be preset before image decoding */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    int maskRequired;           /* must be preset before image decoding */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
    int width;                  /* in pixels */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
    int height;                 /* in pixels */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
    int frameCount;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
    SplashImage *frames;        /* dynamically allocated array of frame descriptors */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
    unsigned time;              /* in msec, origin is not important */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
    rgbquad_t *overlayData;     /* overlay image data, always rgbquads */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
    ImageRect overlayRect;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
    ImageFormat overlayFormat;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
    void *screenData;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
    int screenStride;           /* stored scanline length in bytes */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
    int currentFrame;           // currentFrame==-1 means image is not loaded
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
    int loopCount;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
    int x, y;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
    rgbquad_t colorIndex[SPLASH_COLOR_MAP_SIZE];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
    int isVisible;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
    char*       fileName;       /* stored in 16-bit unicode (jchars) */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
    int         fileNameLen;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
    char*       jarName;        /* stored in 16-bit unicode (jchars) */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
    int         jarNameLen;
25552
96abb01815f6 8043869: [macosx] java -splash does not honor @2x hi dpi notation for retina support
alexsch
parents: 23010
diff changeset
    98
    float       scaleFactor;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
#if defined(WITH_WIN32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
    BOOL isLayered;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
    HWND hWnd;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
    HPALETTE hPalette;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
    CRITICAL_SECTION lock;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
#elif defined(WITH_X11)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
    int controlpipe[2];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
    Display *display;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
    Window window;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
    Screen *screen;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
    Visual *visual;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
    Colormap cmap;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
    pthread_mutex_t lock;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
    Cursor cursor;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
    XWMHints* wmHints;
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   114
#elif defined(WITH_MACOSX)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   115
    pthread_mutex_t lock;
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   116
    int controlpipe[2];
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   117
    NSWindow * window;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
#endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
} Splash;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
/* various shared and/or platform dependent splash screen functions */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   123
/*************** Platform-specific ******************/
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   124
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   125
/* To be implemented in the platform-specific native code. */
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   126
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   127
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   128
void SplashInitPlatform(Splash * splash);
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   129
void SplashCreateThread(Splash * splash);
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   130
void SplashCleanupPlatform(Splash * splash);
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   131
void SplashDonePlatform(Splash * splash);
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   132
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   133
unsigned SplashTime();
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   134
char* SplashConvertStringAlloc(const char* in, int *size);
36907
c3d8383e3efb 8145173: HiDPI splash screen support on Windows
rchamyal
parents: 25859
diff changeset
   135
jboolean SplashGetScaledImageName(const char* jarName,
c3d8383e3efb 8145173: HiDPI splash screen support on Windows
rchamyal
parents: 25859
diff changeset
   136
                 const char* fileName, float *scaleFactor,
c3d8383e3efb 8145173: HiDPI splash screen support on Windows
rchamyal
parents: 25859
diff changeset
   137
                 char *scaleImageName, const size_t scaledImageNameLength);
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   138
void SplashLock(Splash * splash);
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   139
void SplashUnlock(Splash * splash);
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   140
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   141
void SplashInitFrameShape(Splash * splash, int imageIndex);
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   142
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   143
void SplashUpdate(Splash * splash);
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   144
void SplashReconfigure(Splash * splash);
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   145
void SplashClosePlatform(Splash * splash);
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   146
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   147
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   148
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 5506
diff changeset
   149
/********************* Shared **********************/
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
Splash *SplashGetInstance();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
int SplashIsStillLooping(Splash * splash);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
void SplashNextFrame(Splash * splash);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
void SplashStart(Splash * splash);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
void SplashDone(Splash * splash);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
void SplashUpdateScreenData(Splash * splash);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
void SplashCleanup(Splash * splash);
25552
96abb01815f6 8043869: [macosx] java -splash does not honor @2x hi dpi notation for retina support
alexsch
parents: 23010
diff changeset
   160
void SplashSetScaleFactor(float scaleFactor);
36907
c3d8383e3efb 8145173: HiDPI splash screen support on Windows
rchamyal
parents: 25859
diff changeset
   161
int  SplashGetScaledImgNameMaxPstfixLen(const char *fileName);
41776
71e2575dd727 8151787: Unify the HiDPI splash screen image naming convention
rchamyal
parents: 36907
diff changeset
   162
void cleanUp(char *fName, char *xName, char *pctName, float *scaleFactor);
71e2575dd727 8151787: Unify the HiDPI splash screen image naming convention
rchamyal
parents: 36907
diff changeset
   163
jboolean GetScaledImageName(const char *fileName, char *scaledImgName,
71e2575dd727 8151787: Unify the HiDPI splash screen image naming convention
rchamyal
parents: 36907
diff changeset
   164
                  float *scaleFactor, const size_t scaledImageLength);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
typedef struct SplashStream {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
    int (*read)(void* pStream, void* pData, int nBytes);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
    int (*peek)(void* pStream);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
    void (*close)(void* pStream);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
    union {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
        struct {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
            FILE* f;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
        } stdio;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
        struct {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
            unsigned char* pData;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
            unsigned char* pDataEnd;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
        } mem;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
    } arg;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
} SplashStream;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
int SplashStreamInitFile(SplashStream * stream, const char* filename);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
int SplashStreamInitMemory(SplashStream * stream, void * pData, int size);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
/* image decoding */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
int SplashDecodeGifStream(Splash * splash, SplashStream * stream);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
int SplashDecodeJpegStream(Splash * splash, SplashStream * stream);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
int SplashDecodePngStream(Splash * splash, SplashStream * stream);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
/* utility functions */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
int BitmapToYXBandedRectangles(ImageRect * pSrcRect, RECT_T * out);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
2608
fe2af56a83d3 6804996: JWS PNG Decoding Integer Overflow [V-flrhat2ln8]
bae
parents: 2
diff changeset
   192
#define SAFE_TO_ALLOC(c, sz)                                               \
fe2af56a83d3 6804996: JWS PNG Decoding Integer Overflow [V-flrhat2ln8]
bae
parents: 2
diff changeset
   193
    (((c) > 0) && ((sz) > 0) &&                                            \
fe2af56a83d3 6804996: JWS PNG Decoding Integer Overflow [V-flrhat2ln8]
bae
parents: 2
diff changeset
   194
     ((0xffffffffu / ((unsigned int)(c))) > (unsigned int)(sz)))
fe2af56a83d3 6804996: JWS PNG Decoding Integer Overflow [V-flrhat2ln8]
bae
parents: 2
diff changeset
   195
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
#define dbgprintf printf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
#endif