m4 configure anomaly

goodoldmarty at gmail.com goodoldmarty at gmail.com
Thu Oct 4 04:27:01 PDT 2007


Hardened Linux From Scratch - Version SVN-20070901

5.21. M4-1.4.10

I have seen this before. I thought (infinite + infinite == infinite) but 
apparently the arguments argue.

I assume this event is inconsequential and that 'configure' simply took 
the buffer overflow as a 'no'. Execution continues uneventfully anyway.
If this is the case, it would be good to mention this in the book re M4; 
or is this something of concern?

checking whether printf supports size specifiers as in C99... yes
checking whether printf supports 'long double' arguments... yes
checking whether printf supports infinite 'double' arguments... yes
checking whether printf supports infinite 'long double' arguments... *** 
buffer overflow detected ***: ./conftest terminated
======= Backtrace: =========
/tools/lib/libc.so.6(__chk_fail+0x44)[0x1e0d44]
/tools/lib/libc.so.6[0x1e0548]
/tools/lib/libc.so.6(_IO_default_xsputn+0xb2)[0x172642]
/tools/lib/libc.so.6(__printf_fp+0x1029)[0x1508a9]
/tools/lib/libc.so.6(_IO_vfprintf+0x1228)[0x14c368]
/tools/lib/libc.so.6(__vsprintf_chk+0xa3)[0x1e05f3]
/tools/lib/libc.so.6(__sprintf_chk+0x30)[0x1e0530]
./conftest(main+0x77b)[0x7bff1b]
/tools/lib/libc.so.6(__libc_start_main+0xd8)[0x1257c8]
./conftest[0x7bf621]
======= Memory map: ========
00110000-00235000 r-xp 00000000 08:03 616395 
/mnt/hlfs/tools/lib/libc-2.5.1.so
00235000-00237000 r-xp 00125000 08:03 616395 
/mnt/hlfs/tools/lib/libc-2.5.1.so
00237000-00238000 rwxp 00127000 08:03 616395 
/mnt/hlfs/tools/lib/libc-2.5.1.so
00238000-0023b000 rwxp 00238000 00:00 0
00725000-00726000 r-xp 00725000 00:00 0          [vdso]
007bf000-007c1000 r-xp 00000000 08:03 587787 
/mnt/hlfs/sources/m4-1.4.10/conftest
007c1000-007c2000 r-xp 00001000 08:03 587787 
/mnt/hlfs/sources/m4-1.4.10/conftest
007c2000-007c3000 rwxp 00002000 08:03 587787 
/mnt/hlfs/sources/m4-1.4.10/conftest
0088f000-008a9000 r-xp 00000000 08:03 616595 
/mnt/hlfs/tools/lib/ld-2.5.1.so
008a9000-008aa000 r-xp 00019000 08:03 616595 
/mnt/hlfs/tools/lib/ld-2.5.1.so
008aa000-008ab000 rwxp 0001a000 08:03 616595 
/mnt/hlfs/tools/lib/ld-2.5.1.so
00ad7000-00ae1000 r-xp 00000000 08:03 616340 
/mnt/hlfs/tools/lib/libgcc_s.so.1
00ae1000-00ae2000 r-xp 00009000 08:03 616340 
/mnt/hlfs/tools/lib/libgcc_s.so.1
00ae2000-00ae3000 rwxp 0000a000 08:03 616340 
/mnt/hlfs/tools/lib/libgcc_s.so.1
081db000-081fc000 rw-p 081db000 00:00 0
b7f23000-b7f25000 rw-p b7f23000 00:00 0
bfbdc000-bfbf1000 rw-p bfbdc000 00:00 0          [stack]
no
checking whether printf supports the 'a' and 'A' directives... yes
checking whether printf supports the 'F' directive... yes
blah
blah
blah



More information about the hlfs-dev mailing list