[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#5909) stack overflow in tavl_delete (libraries/liblutil/tavl.c)?



ulrich.windl@rz.uni-regensburg.de writes:
> To make a long discussion short, you cold add a comment regarding the
> use of "8".

The 8 should be CHAR_BIT.

/* Maximum tree depth this host's address space could support */
#define MAX_TREE_DEPTH (sizeof(void *) * CHAR_BIT)

-- 
Hallvard