]> git.eshelyaron.com Git - emacs.git/commit
Fix core dump with x-get-local-selection
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 4 Jul 2022 21:21:35 +0000 (16:21 -0500)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 4 Jul 2022 21:22:17 +0000 (16:22 -0500)
commit6d415d5f0b616fc36f3e5c47a42b6af19eb3d82a
tree0c0a80eb451ec8f28e13ff0c7315796cc219ec12
parent7540f98c5ac57247066f017889b6cffe1dd690fc
Fix core dump with x-get-local-selection

* src/xselect.c (Fx_get_local_selection): Check that VALUE has 4
elements, since x_get_local_selection can dump core otherwise.
This pacifies gcc -Wanalyzer-null-dereference, which found the
problem.
src/xselect.c