Ulrich Spörlein wrote: > I'm pretty sure it's the link_getaddr in af_link.c, there are two > possible fixes, depending on the requirements of link_addr() > > If link_addr *needs* a terminating '\0', then we need to > malloc(strlen(addr) + 2), if it doesn't need the terminating zero, we > should get away with strncpy(temp + 1, addr, strlen(addr)) Yeah, seems to be a slow sunday today. Attached is the fix for this off-by-one bug. Ulrich Spoerlein -- PGP Key ID: F0DB9F44 Encrypted mail welcome! Fingerprint: F1CE D062 0CA9 ADE3 349B 2FE8 980A C6B5 F0DB 9F44 Which is worse: ignorance or apathy? Don't know. Don't care.Received on Sun Jan 15 2006 - 17:29:46 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:50 UTC