Interesting build warning

libtool: link: ranlib build/.libs/libSDL2_test.a
libtool: link: ( cd "build/.libs" && rm -f "libSDL2_test.la" && ln -s 
"../libSDL2_test.la" "libSDL2_test.la" )
In function 'SDL_memcpy_REAL',
    inlined from 'SDL_SetCurrentDisplayMode' at 
/home/ubuntu/SDL/src/video/SDL_video.c:869:5,
    inlined from 'display_handle_done' at 
/home/ubuntu/SDL/src/video/wayland/SDL_waylandvideo.c:652:5:
/home/ubuntu/SDL/src/stdlib/SDL_stdlib.c:527:12: warning: '__builtin_memcpy' 
writing 24 bytes into a region of size 0 overflows the destination 
[-Wstringop-overflow=]
  527 |     return __builtin_memcpy(dst, src, len);
      |            ^
In function 'display_handle_done':
lto1: note: destination object is likely at address zero


And GDB has at least some SDL info now:

Thread 1 "wesnoth-1.18" received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=<optimized out>, signo=6, no_tid=0) at 
./nptl/pthread_kill.c:44
warning: 44     ./nptl/pthread_kill.c: No such file or directory
(gdb) bt
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=6, no_tid=0) 
at ./nptl/pthread_kill.c:44
#1  __pthread_kill_internal (threadid=<optimized out>, signo=6) at 
./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at 
./nptl/pthread_kill.c:89
#3  0x00007ffff6a4519e in __GI_raise (sig=sig@entry=6) at 
../sysdeps/posix/raise.c:26
#4  0x00007ffff6a28902 in __GI_abort () at ./stdlib/abort.c:79
#5  0x00007ffff6a2976c in __libc_message_impl (fmt=fmt@entry=0x7ffff6bdc770 
"*** %s ***: terminated\n") at ../sysdeps/posix/libc_fatal.c:132
#6  0x00007ffff6b41049 in __GI___fortify_fail (msg=msg@entry=0x7ffff6bdc757 
"buffer overflow detected") at ./debug/fortify_fail.c:24
#7  0x00007ffff6b409e4 in __GI___chk_fail () at ./debug/chk_fail.c:28
#8  0x00007ffff6b42459 in __strlcpy_chk (s1=<optimized out>, 
s2=s2@entry=0x7ffff7c82e60 <kmsdrm_dri_devname> "card", n=<optimized out>, 
s1len=<optimized out>) at ./debug/strlcpy_chk.c:28
#9  0x00007ffff7ba4ddb in strlcpy (__dest=<optimized out>, __src=0x7ffff7c82e60 
<kmsdrm_dri_devname> "card", __n=<optimized out>) at 
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:168
#10 SDL_strlcpy_REAL (dst=<optimized out>, src=0x7ffff7c82e60 
<kmsdrm_dri_devname> "card", maxlen=<optimized out>) at 
/home/ubuntu/SDL/src/stdlib/SDL_string.c:546
#11 get_driindex () at /home/ubuntu/SDL/src/video/kmsdrm/SDL_kmsdrmvideo.c:98
#12 0x00007ffff7ba5152 in KMSDRM_Available () at 
/home/ubuntu/SDL/src/video/kmsdrm/SDL_kmsdrmvideo.c:204
#13 KMSDRM_CreateDevice () at 
/home/ubuntu/SDL/src/video/kmsdrm/SDL_kmsdrmvideo.c:230
#14 0x00007ffff7b55f07 in SDL_VideoInit_REAL (driver_name=<optimized out>) at 
/home/ubuntu/SDL/src/video/SDL_video.c:528
#15 0x00007ffff7a42017 in SDL_InitSubSystem_REAL (flags=32) at 
/home/ubuntu/SDL/src/SDL.c:277
#16 0x0000555555e49e10 in ??? ()
#17 0x00005555558f2d94 in ??? ()
#18 0x0000555555884333 in main ()

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2089779

Title:
  Buffer overflow in autopkgtest of wesnoth

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/boost1.83/+bug/2089779/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to