[regression] xwayland 23.0.99.901 prerelease - Keyboard Layout switching broken at X11 clients
Downstream report: https://bugzilla.redhat.com/show_bug.cgi?id=2173201
I try bisect this issue
❯ git bisect bad xwayland-23.0.99.901
You need to start by "git bisect start"
Do you want me to do it for you [Y/n]? y
status: waiting for both good and bad commits
status: waiting for good commit(s), bad commit known
❯ git bisect good xwayland-22.1.8
Bisecting: a merge base must be tested
[d1f26c3e7566ebb6178a855b08b0f06dec730fb5] xwayland: Raise the FD limit to the max
But stopped on first stage because build failed with error:
../render/picture.c:874:26: error: array subscript ‘union _SourcePict[0]’ is partly outside array bounds of ‘unsigned char[16]’ [-Werror=array-bounds=]
874 | pPicture->pSourcePict->type = SourcePictTypeSolidFill;
| ^~
../render/picture.c:868:45: note: object of size 16 allocated by ‘malloc’
868 | pPicture->pSourcePict = (SourcePictPtr) malloc(sizeof(PictSolidFill));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../render/picture.c: In function ‘CreateLinearGradientPicture’:
../render/picture.c:906:26: error: array subscript ‘union _SourcePict[0]’ is partly outside array bounds of ‘unsigned char[32]’ [-Werror=array-bounds=]
906 | pPicture->pSourcePict->linear.type = SourcePictTypeLinear;
| ^~
../render/picture.c:899:45: note: object of size 32 allocated by ‘malloc’
899 | pPicture->pSourcePict = (SourcePictPtr) malloc(sizeof(PictLinearGradient));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../render/picture.c: In function ‘CreateConicalGradientPicture’:
../render/picture.c:989:26: error: array subscript ‘union _SourcePict[0]’ is partly outside array bounds of ‘unsigned char[32]’ [-Werror=array-bounds=]
989 | pPicture->pSourcePict->conical.type = SourcePictTypeConical;
| ^~
../render/picture.c:982:45: note: object of size 32 allocated by ‘malloc’
982 | pPicture->pSourcePict = (SourcePictPtr) malloc(sizeof(PictConicalGradient));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
Edited by Mikhail Gavrilov