Package: log4cpp / 1.1.1-3

Metadata

Package Version Patches format
log4cpp 1.1.1-3 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
02_doc_install_path.diff | (download)

doc/Makefile.am | 18 9 + 9 - 0 !
1 file changed, 9 insertions(+), 9 deletions(-)

---
03_aclocal_automake.diff | (download)

Makefile.am | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

---
04_gcc43.diff | (download)

src/BasicLayout.cpp | 2 2 + 0 - 0 !
src/PatternLayout.cpp | 2 1 + 1 - 0 !
2 files changed, 3 insertions(+), 1 deletion(-)

---
05_remove_log4cpp_cflags_from_pkgconfig_file.diff | (download)

log4cpp.pc.in | 2 1 + 1 - 0 !
m4/ac_config_pkgconfig_in.m4 | 2 1 + 1 - 0 !
2 files changed, 2 insertions(+), 2 deletions(-)

---
fix abs call | (download)

src/PatternLayout.cpp | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

---
0001 PThreads Use asprintf to ensure the buffer is always.patch | (download)

src/PThreads.cpp | 11 8 + 3 - 0 !
1 file changed, 8 insertions(+), 3 deletions(-)

 [patch] pthreads: use asprintf to ensure the buffer is always large
 enough

The temporary buffer in PThreads::getThreadId is only 16 bytes (ie can
store up to about 2^49 as a decimal string), but pthread_self is an
unsigned long, and on sparc64 a typicaly value is 0xfff8000100ca9910,
which overflows the buffer (18444492278204111120 is 21 digits). The
simple "solution" would of course be to bump up the buffer size (and
use snprintf rather than the abomination that is sprintf...), but it
seems nicer to let asprintf allocate the right size. The attached
patch switched to asprintf.