Skip site navigation (1)Skip section navigation (2)
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>

index | next in thread | previous in thread | raw e-mail

# 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 
/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 
whatis: nothing appropriate

This seems to be only for the not-found case.

===
Mark Millard
marklmi at yahoo.com



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A4577E70-AB32-450F-A3F6-A2B42B09A1B3>