Porting an element from user level to kernel level?

Eddie Kohler kohler at icir.org
Wed Mar 26 18:35:11 EST 2003


> I have noticed that I can't use snprintf() calls in kernel-level, but
> sprintf() are allowed. If I can't specify the number of bytes to be written
> to a string, how I can prevent my code from a buffer overflow?

Use Click's dynamic string operations, like StringAccum and
String::operator+().

Eddie




More information about the click mailing list