OSDN Git Service

When I switched from using stack allocated space for printf, I missed a case
authorEric Andersen <andersen@codepoet.org>
Wed, 17 Dec 2003 06:41:20 +0000 (06:41 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 17 Dec 2003 06:41:20 +0000 (06:41 -0000)
commitf3651e4e206598a4d39dbdab76d4c066ab646188
tree9915ee4960fd4b204b82a7a41acf552ac95d29bf
parentaf2bcae79495e916e1568defb1b756ec580350ac
When I switched from using stack allocated space for printf, I missed a case
where a sizeof(foo) was changed to the sizeof a pointer.  This caused
_dl_printf to complain a lot when debug is enabled (which itself revealed a bug
since it should have exited on buffer overflow), and let me to find another
bug, where memory failures would try to recursively call _dl_printf....
What a mess.
ldso/ldso/dl-elf.c
ldso/ldso/readelflib1.c