/third_party/glib/glib/tests/ |
D | overflow.c | 140 { TRUE, G_MAXSIZE, G_MAXSIZE, 0 }, in test_checked_gsize_add() 141 { TRUE, G_MAXSIZE, 0, G_MAXSIZE }, in test_checked_gsize_add() 142 { TRUE, G_MAXSIZE - 1, G_MAXSSIZE, G_MAXSSIZE }, in test_checked_gsize_add() 143 { FALSE, 0, G_MAXSIZE, 1 }, in test_checked_gsize_add() 144 { FALSE, 0, 1, G_MAXSIZE }, in test_checked_gsize_add() 145 { FALSE, 0, G_MAXSIZE, G_MAXSIZE } in test_checked_gsize_add() 167 { TRUE, 0, G_MAXSIZE, 0 }, in test_checked_gsize_mul() 168 { TRUE, G_MAXSIZE, G_MAXSIZE, 1 }, in test_checked_gsize_mul()
|
D | win32.c | 43 DWORD bp = G_MAXSIZE; in test_subst_pid_and_event()
|
D | mem-overflow.c | 33 static gsize a = G_MAXSIZE / 10 + 10;
|
/third_party/glib/glib/gnulib/ |
D | xsize.h | 58 ((N) <= G_MAXSIZE ? (size_t) (N) : G_MAXSIZE) 68 return (sum >= size1 ? sum : G_MAXSIZE); in xsum() 108 ((N) <= G_MAXSIZE / (ELSIZE) ? (size_t) (N) * (ELSIZE) : G_MAXSIZE) 112 ((SIZE) == G_MAXSIZE) 115 ((SIZE) != G_MAXSIZE)
|
D | glib-gnulib.patch | 23 * glib has G_MAXSIZE instead of SIZE_MAX, so use that 371 +/* Get G_MAXSIZE. */ 381 + The convention is that G_MAXSIZE represents overflow. 382 + malloc (G_MAXSIZE) is not guaranteed to fail -- think of a malloc 391 + ((N) <= G_MAXSIZE ? (size_t) (N) : G_MAXSIZE) 400 + return (sum >= size1 ? sum : G_MAXSIZE); 409 + max (G_MAXSIZE, n) == G_MAXSIZE and max (n, G_MAXSIZE) == G_MAXSIZE. */ 417 + when N is of a wider type and N > G_MAXSIZE. */ 420 + ((N) <= G_MAXSIZE / (ELSIZE) ? (size_t) (N) * (ELSIZE) : G_MAXSIZE) 425 + ((SIZE) == G_MAXSIZE) [all …]
|
/third_party/glib/glib/ |
D | grcbox.c | 195 g_assert (block_size < (G_MAXSIZE - private_size)); in g_rc_box_alloc_full() 204 g_assert (real_size < (G_MAXSIZE - (alignment - offset))); in g_rc_box_alloc_full() 217 g_assert (private_size < (G_MAXSIZE - ALIGN_STRUCT (1))); in g_rc_box_alloc_full()
|
D | gmem.h | 242 (__s == 0 || __n <= G_MAXSIZE / __s)) \ 256 (__s == 0 || __n <= G_MAXSIZE / __s)) \
|
D | glibconfig.h | 86 #define G_MAXSIZE G_MAXULONG macro 138 #define G_MAXSIZE G_MAXUINT macro
|
D | gmem.c | 321 #define SIZE_OVERFLOWS(a,b) (G_UNLIKELY ((b) > 0 && (a) > G_MAXSIZE / (b)))
|
D | ghostutils.c | 499 if (hostname_max_length_bytes <= G_MAXSIZE / 4 && in g_hostname_to_ascii() 684 if (hostname_max_length_bytes <= G_MAXSIZE / 4 && in g_hostname_to_unicode()
|
D | gbase64.c | 272 g_return_val_if_fail (len < ((G_MAXSIZE - 1) / 4 - 1) * 3, NULL); in g_base64_encode()
|
D | gmappedfile.c | 153 if (sizeof (st.st_size) > sizeof (gsize) && st.st_size > (off_t) G_MAXSIZE) in mapped_file_new_from_fd()
|
D | glibconfig.h.in | 84 #define G_MAXSIZE G_MAXU@glib_msize_type@ macro
|
D | gvariant-core.c | 1066 g_return_val_if_fail (value->depth < G_MAXSIZE, NULL); in g_variant_get_child_value()
|
D | gfileutils.c | 712 if (total_bytes > G_MAXSIZE - bytes) in get_contents_stdio() 720 if (total_allocated > G_MAXSIZE / 2) in get_contents_stdio()
|
/third_party/glib/tests/ |
D | type-test.c | 85 gsz = G_MAXSIZE; in main()
|
/third_party/glib/gio/ |
D | gpollableoutputstream.c | 184 if (_bytes_written > G_MAXSIZE - vectors[i].size) in g_pollable_output_stream_default_writev_nonblocking()
|
D | giowin32-private.c | 44 g_assert (str_len_unsigned <= G_MAXSIZE / sizeof (gunichar2) - 1); in g_wcsdup()
|
D | goutputstream.c | 469 if (to_be_written > G_MAXSIZE - vectors[i].size) in g_output_stream_writev_all() 1530 if (to_be_written > G_MAXSIZE - vectors[i].size) in g_output_stream_writev_all_async() 2321 if (_bytes_written > G_MAXSIZE - vectors[i].size) in g_output_stream_real_writev()
|
D | gwin32packageparser.c | 89 g_assert (str_len_unsigned <= G_MAXSIZE / sizeof (gunichar2) - 1); in g_wcsdup()
|
D | ginputstream.c | 431 if (start > G_MAXSIZE - count || start + count > end) in g_input_stream_real_skip()
|
/third_party/glib/gio/tests/ |
D | file.c | 2387 vectors[0].size = G_MAXSIZE / 2; in test_writev_too_big_vectors() 2390 vectors[1].size = G_MAXSIZE / 2; in test_writev_too_big_vectors() 2393 vectors[2].size = G_MAXSIZE / 2; in test_writev_too_big_vectors() 2776 vectors[0].size = G_MAXSIZE / 2; in test_writev_async_all_too_big_vectors() 2779 vectors[1].size = G_MAXSIZE / 2; in test_writev_async_all_too_big_vectors() 2782 vectors[2].size = G_MAXSIZE / 2; in test_writev_async_all_too_big_vectors()
|
/third_party/libsoup/libsoup/ |
D | soup-message-body.c | 591 g_return_val_if_fail (body->length < G_MAXSIZE, NULL); in soup_message_body_flatten()
|
/third_party/gstreamer/gstplugins_good/gst/flx/ |
D | gstflxdec.c | 827 if (flxdec->size >= G_MAXSIZE / 4) { in gst_flxdec_chain()
|
/third_party/gstreamer/gstplugins_good/gst/matroska/ |
D | matroska-read-common.c | 125 if (new_size > G_MAXSIZE - 4096 || new_size + 4096 > MAX_DECOMPRESS_SIZE) { in gst_matroska_decompress_data() 184 if (new_size > G_MAXSIZE - 4096 || new_size + 4096 > MAX_DECOMPRESS_SIZE) { in gst_matroska_decompress_data() 263 if (size > G_MAXSIZE - enc->comp_settings_length in gst_matroska_decompress_data()
|