Timo Aaltonen pushed to branch upstream-unstable at X Strike Force / wayland / xwayland
Commits:
-
26120df7
by Matthieu Herrb at 2024-10-29T16:26:59+01:00
-
3bfef8d7
by José Expósito at 2024-10-29T16:27:04+01:00
2 changed files:
Changes:
| ... | ... | @@ -3,10 +3,10 @@ project('xwayland', 'c', |
| 3 | 3 | 'buildtype=debugoptimized',
|
| 4 | 4 | 'c_std=gnu99',
|
| 5 | 5 | ],
|
| 6 | - version: '24.1.3',
|
|
| 6 | + version: '24.1.4',
|
|
| 7 | 7 | meson_version: '>= 0.56.0',
|
| 8 | 8 | )
|
| 9 | -release_date = '2024-10-02'
|
|
| 9 | +release_date = '2024-10-29'
|
|
| 10 | 10 | |
| 11 | 11 | add_project_arguments('-DHAVE_DIX_CONFIG_H', language: ['c', 'objc'])
|
| 12 | 12 | cc = meson.get_compiler('c')
|
| ... | ... | @@ -2990,13 +2990,13 @@ _XkbSetCompatMap(ClientPtr client, DeviceIntPtr dev, |
| 2990 | 2990 | XkbSymInterpretPtr sym;
|
| 2991 | 2991 | unsigned int skipped = 0;
|
| 2992 | 2992 | |
| 2993 | - if ((unsigned) (req->firstSI + req->nSI) > compat->num_si) {
|
|
| 2994 | - compat->num_si = req->firstSI + req->nSI;
|
|
| 2993 | + if ((unsigned) (req->firstSI + req->nSI) > compat->size_si) {
|
|
| 2994 | + compat->num_si = compat->size_si = req->firstSI + req->nSI;
|
|
| 2995 | 2995 | compat->sym_interpret = reallocarray(compat->sym_interpret,
|
| 2996 | - compat->num_si,
|
|
| 2996 | + compat->size_si,
|
|
| 2997 | 2997 | sizeof(XkbSymInterpretRec));
|
| 2998 | 2998 | if (!compat->sym_interpret) {
|
| 2999 | - compat->num_si = 0;
|
|
| 2999 | + compat->num_si = compat->size_si = 0;
|
|
| 3000 | 3000 | return BadAlloc;
|
| 3001 | 3001 | }
|
| 3002 | 3002 | }
|