xorg-libx11/modules
Alan Coopersmith f2ebbce6d0 _XimStrConversionCallback: use size_t to calculate size to malloc
Avoids build failures with gcc 14.2 when MALLOC_0_RETURNS_NULL is defined:

imCallbk.c:346:9: error: ‘memcpy’ offset 10 is out of the bounds [0, 1]
 [-Werror=array-bounds=]
  346 |         memcpy(&buf[p],&cbrec.text->string.mbs,length_in_bytes);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/lib/libx11/-/merge_requests/267>
2024-09-29 10:24:23 -07:00
..
im _XimStrConversionCallback: use size_t to calculate size to malloc 2024-09-29 10:24:23 -07:00
lc unifdef Lynx 2024-02-20 17:05:50 -08:00
om Fix buffer overrun in parse_omit_name 2024-05-07 08:54:50 +00:00
Makefile.am Add missing Makefile.am to lib/X11/modules 2005-07-15 04:27:32 +00:00