xcb_ewmh_get_desktop_names_reply possibly does not return null-terminated string #1739
Unanswered
ltoenning
asked this question in
(Possible) Issues
Replies: 1 comment 4 replies
-
Interesting, have not seen this one before. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using bspwm with desktops named from 1-10. When running window mode, the desktop number is not always shown correctly. I debugged rofi and it seems, that after:
rofi/source/modes/window.c
Lines 581 to 582 in 804eb90
names.strings_len
equals 20 andname.strings=1\02\03\04\05\06\07\08\09\010
.Sometimes the 21st byte and following will contain garbage and not
\0
(see screenshot). Therefore this will fail for windows on the 10th desktop:rofi/source/modes/window.c
Lines 514 to 528 in 804eb90
Maybe this could easily be fixed for rofi by limiting the returning window name by
length
. But this might be a workaround only.I have not found anything about this within the ewmh API documentation if it should be null-terminated or not. Is this already known or should be fixed with ewmh/xcb.
Beta Was this translation helpful? Give feedback.
All reactions