Hello, I would like to report a sanitizer-detected violation in GNU make 4.4.1.
I built make with sanitizers enabled using: CC=clang CFLAGS="-O1 -g -fno-omit-frame-pointer -fsanitize=address,undefined,integer,bounds" LDFLAGS="-fsanitize=address,undefined,integer,bounds" Observed result: /root/build/make-4.4.1/src/variable.c:299:49: runtime error: unsigned integer overflow: 44 - 48 cannot be represented in type 'unsigned int' #0 0x5c0c9b in define_variable_in_set /root/build/make-4.4.1/src/variable.c:299:49 #1 0x4defb5 in define_default_variables /root/build/make-4.4.1/src/default.c:760:5 #2 0x54e704 in main /root/build/make-4.4.1/src/main.c:2039:3 #3 0x79bd73f2fc86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310 #4 0x420f19 in _start (/work/build/make-4.4.1/obj-gcov2/make+0x420f19) Best regards, Lingfeng Chen <https://aka.ms/GetOutlookForMac>
