No description
![]() I found the following bug, where nlmsg_ok() in lib/msg.c would incorrectly return 'true' when the input argument 'remaining' was a negative number. This happens when the message is not aligned the way that libnl expects (although it is still legal). In the comparison of the signed and unsigned numbers on line 284, the signed number gets converted to an unsigned number, which is unexpected and naturally produces a bug. My patch is below. The cast is ugly, but it fixes the problem. |
||
---|---|---|
doc | ||
include | ||
lib | ||
src | ||
tests | ||
.gitignore | ||
aclocal.m4 | ||
ChangeLog | ||
configure.in | ||
COPYING | ||
install-sh | ||
libnl-2.0.pc.in | ||
Makefile | ||
Makefile.opts.in | ||
Makefile.rules |