• Jon Dyte's avatar
    Prior to this patch prefix_tree asserts. · 14853c2d
    Jon Dyte authored
    This is because as it adds the 255th element at a node it attempts to calculate
    the count member var which is an unsigned char via count = (255 -0) + 1; and
    pass the result to realloc. Unfortunately the result is zero and realloc returns
    null; the prefix_tree asserts. I have fixed it by making the count an unsigned
    short.
    14853c2d
Name
Last commit
Last update
builds Loading commit data...
debian Loading commit data...
devices Loading commit data...
doc Loading commit data...
foreign Loading commit data...
include Loading commit data...
perf Loading commit data...
src Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LESSER Loading commit data...
ChangeLog Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
configure.in Loading commit data...