Lines Matching defs:num_chars
195 * - num_chars fsOffset32 entries
200 CARD32 num_chars, CARD32 nbytes,
204 long offsets_size = SIZEOF(fsOffset32) * num_chars;
227 rep->num_chars = num_chars;
233 for (i = 0; i < (long)num_chars; i++) {
246 * Test 1: num_chars > num_encoding
249 * num_chars = 100. Without the fix, this would read/write
261 CARD32 num_chars = 100;
262 CARD32 nbytes = num_chars * 16; /* enough bitmap data */
264 /* Build a reply with num_chars=100 but valid source data */
265 reply_size = build_reply(&reply_buf, num_chars, nbytes, 0, 16);
276 printf("ok 1 - num_chars (%u) > num_encoding (%d) rejected\n",
277 (unsigned)num_chars, num_encoding);
280 printf("not ok 1 - num_chars (%u) > num_encoding (%d) "
282 (unsigned)num_chars, num_encoding);
303 int num_encoding = 100; /* match num_chars so encoding[] is fine */
304 CARD32 num_chars = 100;
310 reply_size = build_reply(&reply_buf, num_chars, nbytes, 0, 64);
333 * num_chars == num_encoding, each glyph has unique non-overlapping
346 CARD32 num_chars = 4;
348 CARD32 nbytes = num_chars * glyph_size;
354 offsets_size = SIZEOF(fsOffset32) * num_chars;
369 rep->num_chars = num_chars;
373 for (i = 0; i < (int)num_chars; i++) {