summaryrefslogtreecommitdiff
path: root/java/org
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2026-05-23 09:34:30 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2026-05-23 19:18:53 -0700
commitfbd2f781b2a75554cc5571490198f7dfff18f9f3 (patch)
treecd11d3c0109956478918972440b3ddf542efe527 /java/org
parent1bee33c1c801adf5e3deeba7328b811b80c55f70 (diff)
Be more careful about X selection sizes
* src/xselect.c (selection_data_for_offset): Offset is size_t, not long, since that’s what caller passes. (selection_data_size): Truncate large selection sizes to a value that is more likely to work without involving undefined behavior. Do not exceed X_ULONG_MAX which is all X can handle, or PTRDIFF_MAX which can confuse underlying code. (x_start_selection_transfer): Invoke selection_data_size just once.
Diffstat (limited to 'java/org')
0 files changed, 0 insertions, 0 deletions