diff options
author | David Robillard <d@drobilla.net> | 2023-01-10 21:38:01 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-01-11 03:28:10 -0500 |
commit | c33edc9b41ccdd7ec3fe711d3a96002b266106bd (patch) | |
tree | 1735147be5b4f35500cde3c84f7a436cb6df4ec6 /src/x11.c | |
parent | 16739fe3b2cf0fe8c2ffcb3e983ef09aa04517dc (diff) | |
download | pugl-c33edc9b41ccdd7ec3fe711d3a96002b266106bd.tar.gz pugl-c33edc9b41ccdd7ec3fe711d3a96002b266106bd.tar.bz2 pugl-c33edc9b41ccdd7ec3fe711d3a96002b266106bd.zip |
Fix checks for invalid view positions
Diffstat (limited to 'src/x11.c')
-rw-r--r-- | src/x11.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1845,7 +1845,7 @@ puglSetPosition(PuglView* const view, const int x, const int y) Display* const display = view->world->impl->display; const Window win = view->impl->win; - if (x > INT16_MAX || y > INT16_MAX) { + if (x < INT16_MIN || x > INT16_MAX || y < INT16_MIN || y > INT16_MAX) { return PUGL_BAD_PARAMETER; } |