Home
last modified time | relevance | path

Searched refs:G_MAXSIZE (Results 1 – 25 of 32) sorted by relevance

12

/third_party/glib/glib/tests/
Doverflow.c140 { 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()
Dwin32.c43 DWORD bp = G_MAXSIZE; in test_subst_pid_and_event()
Dmem-overflow.c33 static gsize a = G_MAXSIZE / 10 + 10;
/third_party/glib/glib/gnulib/
Dxsize.h58 ((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)
Dglib-gnulib.patch23 * 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/
Dgrcbox.c195 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()
Dgmem.h242 (__s == 0 || __n <= G_MAXSIZE / __s)) \
256 (__s == 0 || __n <= G_MAXSIZE / __s)) \
Dglibconfig.h86 #define G_MAXSIZE G_MAXULONG macro
138 #define G_MAXSIZE G_MAXUINT macro
Dgmem.c321 #define SIZE_OVERFLOWS(a,b) (G_UNLIKELY ((b) > 0 && (a) > G_MAXSIZE / (b)))
Dghostutils.c499 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()
Dgbase64.c272 g_return_val_if_fail (len < ((G_MAXSIZE - 1) / 4 - 1) * 3, NULL); in g_base64_encode()
Dgmappedfile.c153 if (sizeof (st.st_size) > sizeof (gsize) && st.st_size > (off_t) G_MAXSIZE) in mapped_file_new_from_fd()
Dglibconfig.h.in84 #define G_MAXSIZE G_MAXU@glib_msize_type@ macro
Dgvariant-core.c1066 g_return_val_if_fail (value->depth < G_MAXSIZE, NULL); in g_variant_get_child_value()
Dgfileutils.c712 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/
Dtype-test.c85 gsz = G_MAXSIZE; in main()
/third_party/glib/gio/
Dgpollableoutputstream.c184 if (_bytes_written > G_MAXSIZE - vectors[i].size) in g_pollable_output_stream_default_writev_nonblocking()
Dgiowin32-private.c44 g_assert (str_len_unsigned <= G_MAXSIZE / sizeof (gunichar2) - 1); in g_wcsdup()
Dgoutputstream.c469 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()
Dgwin32packageparser.c89 g_assert (str_len_unsigned <= G_MAXSIZE / sizeof (gunichar2) - 1); in g_wcsdup()
Dginputstream.c431 if (start > G_MAXSIZE - count || start + count > end) in g_input_stream_real_skip()
/third_party/glib/gio/tests/
Dfile.c2387 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/
Dsoup-message-body.c591 g_return_val_if_fail (body->length < G_MAXSIZE, NULL); in soup_message_body_flatten()
/third_party/gstreamer/gstplugins_good/gst/flx/
Dgstflxdec.c827 if (flxdec->size >= G_MAXSIZE / 4) { in gst_flxdec_chain()
/third_party/gstreamer/gstplugins_good/gst/matroska/
Dmatroska-read-common.c125 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()

12