/openjdk7/jdk/src/share/native/common/ |
H A D | sizecalc.h | 68 * int* p = (int*)SAFE_SIZE_ARRAY_ALLOC(malloc, sizeof(int), n); 72 #define SAFE_SIZE_ARRAY_ALLOC(func, m, n) \ macro
|
/openjdk7/jdk/src/windows/native/sun/windows/ |
H A D | CmdIDList.cpp | 42 m_array = (CmdIDEntry *)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, m_capacity, sizeof(AwtObject*));
|
H A D | awt_InputMethod.cpp | 336 HKL FAR * hKLList = (HKL FAR *)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, sizeof(HKL), layoutCount); 447 HKL FAR * hKLList = (HKL FAR *)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, sizeof(HKL), layoutCount); 456 const char ** javaLocaleNames = (const char **)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, sizeof(char *), layoutCount); 520 szImmDescription = (LPTSTR) SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, (buffSize+1), sizeof(TCHAR));
|
H A D | Devices.cpp | 174 devices = (AwtWin32GraphicsDevice**)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, 191 HMONITOR *monHds = (HMONITOR *)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc,
|
H A D | awt.h | 329 : (LPWSTR)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, (m_dwSize+1), sizeof(WCHAR) ); 339 m_pStr = (LPWSTR)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, (m_dwSize+1), sizeof(WCHAR) );
|
H A D | awt_DesktopProperties.cpp | 174 LPTSTR buffer2 = (LPTSTR)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, valueChar, sizeof(TCHAR)); 591 LPTSTR valueNameBuf = (LPTSTR)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, (lstrlen(valueName) + 1), sizeof(TCHAR)); 595 LPTSTR propKeyBuf = (LPTSTR)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, (lstrlen(propKey) + 1), sizeof(TCHAR));
|
H A D | awt_DataTransferer.cpp | 285 buffer = (LPTSTR)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, bufsize, sizeof(TCHAR)); 363 jbyte* bBytes = (jbyte*)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, size, sizeof(jbyte));
|
H A D | awt_PrintControl.cpp | 487 papers = (WORD*)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, sizeof(WORD), numPaperSizes); 488 paperSizes = (POINT *)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, sizeof(*paperSizes),
|
H A D | awt_PrintJob.cpp | 436 LPTSTR str = (LPTSTR)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, sizeof(TCHAR), sz); 648 LPTSTR str = (LPTSTR)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, sizeof(TCHAR), sz); 2305 xadvances = (int*)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, strLen, sizeof(int)); 2306 xyadvances = (int*)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, strLen, sizeof(int) * 2); 2516 jbyte* alignedImage = (jbyte*) SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, 3120 paperSizes = (POINT *)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, sizeof(*paperSizes), numPaperSizes); 3770 papers = (WORD*)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, sizeof(WORD), numPaperSizes); 3771 paperSizes = (POINT *)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, sizeof(*paperSizes), numPaperSizes);
|
H A D | WPrinterJob.cpp | 813 LPTSTR papers = (LPTSTR)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, numSizes, sizeof(WORD));
|
/openjdk7/jdk/src/solaris/native/sun/awt/ |
H A D | awt_UNIXToolkit.c | 152 filename_str = (char *)SAFE_SIZE_ARRAY_ALLOC(malloc, 194 stock_id_str = (char *)SAFE_SIZE_ARRAY_ALLOC(malloc, 206 detail_str = (char *)SAFE_SIZE_ARRAY_ALLOC(malloc,
|
H A D | awt_Robot.c | 179 masks = (jint *)SAFE_SIZE_ARRAY_ALLOC(malloc, sizeof(jint), num_buttons); 237 !(ary = (jint *) SAFE_SIZE_ARRAY_ALLOC(malloc, width * height, sizeof (jint))))
|
H A D | fontpath.c | 230 appendDirList = SAFE_SIZE_ARRAY_ALLOC(malloc, fDirP->num, sizeof ( int )); 287 newFontPath = SAFE_SIZE_ARRAY_ALLOC(malloc, totalDirCount, sizeof ( char **) ); 308 onePath = SAFE_SIZE_ARRAY_ALLOC(malloc, strlen (fDirP->name[index]) + 2, sizeof( char ) );
|
/openjdk7/jdk/src/share/native/sun/awt/splashscreen/ |
H A D | java_awt_SplashScreen.c | 61 splash->overlayData = SAFE_SIZE_ARRAY_ALLOC(malloc, dataSize, sizeof(rgbquad_t));
|
H A D | splashscreen_gif.c | 125 SAFE_SIZE_ARRAY_ALLOC(malloc, sizeof(SplashImage), gif->ImageCount);
|
/openjdk7/jdk/src/macosx/native/sun/awt/ |
H A D | CRobot.m | 119 gsButtonEventNumber = (int*)SAFE_SIZE_ARRAY_ALLOC(malloc, sizeof(int), gNumberOfButtons);
|
H A D | LWCToolkit.m | 207 gButtonDownMasks = (jint*)SAFE_SIZE_ARRAY_ALLOC(malloc, sizeof(jint), gNumberOfButtons);
|
/openjdk7/jdk/src/macosx/native/sun/awt/splashscreen/ |
H A D | splashscreen_sys.m | 103 buf = SAFE_SIZE_ARRAY_ALLOC(malloc, inSize, 2);
|
/openjdk7/jdk/src/windows/native/sun/font/ |
H A D | lcdglyph.c | 378 dibImage = SAFE_SIZE_ARRAY_ALLOC(malloc, dibBytesWidth, height);
|
/openjdk7/jdk/src/share/native/sun/java2d/pipe/ |
H A D | Region.c | 265 *pRect = (RECT_T *) SAFE_SIZE_ARRAY_ALLOC(malloc, numrects, sizeof(RECT_T));
|
/openjdk7/jdk/src/solaris/native/sun/awt/splashscreen/ |
H A D | splashscreen_sys.c | 80 buf = SAFE_SIZE_ARRAY_ALLOC(malloc, inSize, 2); 124 rects = SAFE_SIZE_ARRAY_ALLOC(malloc, 131 frame->rects = SAFE_SIZE_ARRAY_ALLOC(malloc, frame->numRects, sizeof(XRectangle));
|
/openjdk7/jdk/src/windows/native/sun/java2d/opengl/ |
H A D | WGLSurfaceData.c | 607 pDst = SAFE_SIZE_ARRAY_ALLOC(malloc, height, scanStride);
|
/openjdk7/jdk/src/windows/native/sun/awt/splashscreen/ |
H A D | splashscreen_sys.c | 71 buf = (WCHAR*) SAFE_SIZE_ARRAY_ALLOC(malloc, outChars, sizeof(WCHAR));
|
/openjdk7/jdk/src/windows/native/sun/java2d/windows/ |
H A D | GDIRenderer.cpp | 87 pPoints = (POINT *) SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, sizeof(POINT), outpoints);
|
/openjdk7/jdk/src/solaris/native/sun/xawt/ |
H A D | XlibWrapper.c | 2248 pRect = (RECT_T *)SAFE_SIZE_ARRAY_ALLOC(malloc, worstBufferSize, sizeof(RECT_T));
|