Date: Mon, 10 Jan 2022 23:40:43 -0800 From: Mark Millard <marklmi@yahoo.com> To: freebsd-current <freebsd-current@freebsd.org> Subject: UBSAN report for main [so: 14] /usr/bin/whatis: non-zero (48) and zero offsets from null pointer in qsort.c Message-ID: <A4577E70-AB32-450F-A3F6-A2B42B09A1B3@yahoo.com> References: <A4577E70-AB32-450F-A3F6-A2B42B09A1B3.ref@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
# whatis dog /usr/main-src/lib/libc/stdlib/qsort.c:114:23: runtime error: applying = non-zero offset 48 to null pointer SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior = /usr/main-src/lib/libc/stdlib/qsort.c:114:23 in=20 /usr/main-src/lib/libc/stdlib/qsort.c:114:44: runtime error: applying = zero offset to null pointer SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior = /usr/main-src/lib/libc/stdlib/qsort.c:114:44 in=20 whatis: nothing appropriate This seems to be only for the not-found case. =3D=3D=3D Mark Millard marklmi at yahoo.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A4577E70-AB32-450F-A3F6-A2B42B09A1B3>